org.apache.commons.math3.ml.neuralnet.sofm
| Modifier and Type | Class and Description |
|---|---|
| public static enum | NeuronSquareMesh2D.
Horizontal (along row) direction. |
| private static class | NeuronSquareMesh2D.
Serialization. |
| public static enum | NeuronSquareMesh2D.
Vertical (along column) direction. |
| Modifier and Type | Field and Description |
|---|---|
| private final long[][] | identifiers
Mapping of the 2D coordinates (in the rectangular mesh) to
the neuron identifiers (attributed by the |
| private final SquareNeighbourhood | neighbourhood
Neighbourhood type. |
| private final Network | network
Underlying network. |
| private final int | numberOfColumns
Number of columns. |
| private final int | numberOfRows
Number of rows. |
| private static final long | serialVersionUID
Serial version ID |
| private final boolean | wrapColumns
Wrap. |
| private final boolean | wrapRows
Wrap. |
| Access | Constructor and Description |
|---|---|
| pack-priv | NeuronSquareMesh2D(boolean
Whether to wrap the first dimension (i.e the first
and last neurons will be linked together). wrapRowDim, boolean Whether to wrap the second dimension (i.e the first
and last neurons will be linked together). wrapColDim, SquareNeighbourhood Neighbourhood type. neighbourhoodType, double[][][] Arrays that will initialize the features sets of
the network's neurons. featuresList)Constructor with restricted access, solely used for deserialization. |
| public | NeuronSquareMesh2D(int
Number of neurons in the first dimension. numRows, boolean Whether to wrap the first dimension (i.e the first
and last neurons will be linked together). wrapRowDim, int Number of neurons in the second dimension. numCols, boolean Whether to wrap the second dimension (i.e the first
and last neurons will be linked together). wrapColDim, SquareNeighbourhood Neighbourhood type. neighbourhoodType, FeatureInitializer[] Array of functions that will initialize the
corresponding element of the features set of each newly created
neuron. In particular, the size of this array defines the size of
feature set. featureInit)Creates a two-dimensional network composed of square cells: Each neuron not located on the border of the mesh has four neurons linked to it. |
| private | NeuronSquareMesh2D(boolean
Whether to wrap the first dimension (i.e the first
and last neurons will be linked together). wrapRowDim, boolean Whether to wrap the second dimension (i.e the first
and last neurons will be linked together). wrapColDim, SquareNeighbourhood Neighbourhood type. neighbourhoodType, Network Underlying network. net, long[][] Neuron identifiers. idGrid)Constructor with restricted access, solely used for making a
|
| Modifier and Type | Method and Description |
|---|---|
| public synchronized NeuronSquareMesh2D | Returns: a new instance with the same state as this instance.Performs a deep copy of this instance. |
| private void | |
| private int[] | Returns: an array of length 2 containing the indices of the requested location, ornull if that location is not part of the map.Row index. row, int Column index. col, NeuronSquareMesh2D.Direction along the given alongRowDir,row (i.e. an
offset will be added to the given column index.Direction along the given alongColDircol (i.e. an
offset will be added to the given row index.Computes the location of a neighbouring neuron. |
| public Network | |
| public Neuron | Returns: the neuron at(i, j).Row index. i, int Column index. j)Retrieves the neuron at location |
| public Neuron | Returns: the neuron at the requested location, ornull if
the location is not on the map.Row index. row, int Column index. col, NeuronSquareMesh2D.Direction along the given alongRowDir,row (i.e. an
offset will be added to the given column index.Direction along the given alongColDircol (i.e. an
offset will be added to the given row index.Retrieves the neuron at |
| public int | Returns: the number of column.Gets the number of neurons in each column of this map. |
| public int | |
| public Iterator | |
| private void | |
| private Object |
| identifiers | back to summary |
|---|---|
| private final long[][] identifiers Mapping of the 2D coordinates (in the rectangular mesh) to
the neuron identifiers (attributed by the | |
| neighbourhood | back to summary |
|---|---|
| private final SquareNeighbourhood neighbourhood Neighbourhood type. | |
| network | back to summary |
|---|---|
| private final Network network Underlying network. | |
| numberOfColumns | back to summary |
|---|---|
| private final int numberOfColumns Number of columns. | |
| numberOfRows | back to summary |
|---|---|
| private final int numberOfRows Number of rows. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serial version ID | |
| wrapColumns | back to summary |
|---|---|
| private final boolean wrapColumns Wrap. | |
| wrapRows | back to summary |
|---|---|
| private final boolean wrapRows Wrap. | |
| NeuronSquareMesh2D | back to summary |
|---|---|
| pack-priv NeuronSquareMesh2D(boolean wrapRowDim, boolean wrapColDim, SquareNeighbourhood neighbourhoodType, double[][][] featuresList) Constructor with restricted access, solely used for deserialization.
| |
| NeuronSquareMesh2D | back to summary |
|---|---|
| public NeuronSquareMesh2D(int numRows, boolean wrapRowDim, int numCols, boolean wrapColDim, SquareNeighbourhood neighbourhoodType, FeatureInitializer[] featureInit) Creates a two-dimensional network composed of square cells:
Each neuron not located on the border of the mesh has four
neurons linked to it.
| |
| NeuronSquareMesh2D | back to summary |
|---|---|
| private NeuronSquareMesh2D(boolean wrapRowDim, boolean wrapColDim, SquareNeighbourhood neighbourhoodType, Network net, long[][] idGrid) Constructor with restricted access, solely used for making a
| |
| copy | back to summary |
|---|---|
| public synchronized NeuronSquareMesh2D copy() Performs a deep copy of this instance. Upon return, the copied and original instances will be independent: Updating one will not affect the other.
| |
| createLinks | back to summary |
|---|---|
| private void createLinks() Creates the neighbour relationships between neurons. | |
| getLocation | back to summary |
|---|---|
| private int[] getLocation(int row, int col, NeuronSquareMesh2D. Computes the location of a neighbouring neuron.
It will return
| |
| getNetwork | back to summary |
|---|---|
| public Network getNetwork() Retrieves the underlying network.
A reference is returned (enabling, for example, the network to be
trained).
This also implies that calling methods that modify the
| |
| getNeuron | back to summary |
|---|---|
| public Neuron getNeuron(int i, int j) Retrieves the neuron at location
| |
| getNeuron | back to summary |
|---|---|
| public Neuron getNeuron(int row, int col, NeuronSquareMesh2D. Retrieves the neuron at
| |
| getNumberOfColumns | back to summary |
|---|---|
| public int getNumberOfColumns() Gets the number of neurons in each column of this map.
| |
| getNumberOfRows | back to summary |
|---|---|
| public int getNumberOfRows() Gets the number of neurons in each row of this map.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) Prevents proxy bypass.
| |
| writeReplace | back to summary |
|---|---|
| private Object writeReplace() Custom serialization.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final NeuronSquareMesh2D. | CENTER
Current column. |
| public static final NeuronSquareMesh2D. | LEFT
Column at the left of the current column. |
| public static final NeuronSquareMesh2D. | RIGHT
Column at the right of the current column. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static NeuronSquareMesh2D. | |
| public static NeuronSquareMesh2D. |
| CENTER | back to summary |
|---|---|
| public static final NeuronSquareMesh2D. Current column. | |
| LEFT | back to summary |
|---|---|
| public static final NeuronSquareMesh2D. Column at the left of the current column. | |
| RIGHT | back to summary |
|---|---|
| public static final NeuronSquareMesh2D. Column at the right of the current column. | |
| HorizontalDirection | back to summary |
|---|---|
| private HorizontalDirection() | |
| valueOf | back to summary |
|---|---|
| public static NeuronSquareMesh2D. | |
| values | back to summary |
|---|---|
| public static NeuronSquareMesh2D. | |
| Modifier and Type | Field and Description |
|---|---|
| private final double[][][] | featuresList
Neurons' features. |
| private final SquareNeighbourhood | neighbourhood
Neighbourhood type. |
| private static final long | serialVersionUID
Serializable. |
| private final boolean | wrapColumns
Wrap. |
| private final boolean | wrapRows
Wrap. |
| Access | Constructor and Description |
|---|---|
| pack-priv | SerializationProxy(boolean
Whether the row dimension is wrapped. wrapRows, boolean Whether the column dimension is wrapped. wrapColumns, SquareNeighbourhood Neighbourhood type. neighbourhood, double[][][] List of neurons features.
featuresList)neuronList.
|
| Modifier and Type | Method and Description |
|---|---|
| private Object |
| featuresList | back to summary |
|---|---|
| private final double[][][] featuresList Neurons' features. | |
| neighbourhood | back to summary |
|---|---|
| private final SquareNeighbourhood neighbourhood Neighbourhood type. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable. | |
| wrapColumns | back to summary |
|---|---|
| private final boolean wrapColumns Wrap. | |
| wrapRows | back to summary |
|---|---|
| private final boolean wrapRows Wrap. | |
| SerializationProxy | back to summary |
|---|---|
pack-priv SerializationProxy(boolean wrapRows, boolean wrapColumns, SquareNeighbourhood neighbourhood, double[][][] featuresList)
| |
| readResolve | back to summary |
|---|---|
| private Object readResolve() Custom serialization. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final NeuronSquareMesh2D. | CENTER
Current row. |
| public static final NeuronSquareMesh2D. | DOWN
Row below the current row. |
| public static final NeuronSquareMesh2D. | UP
Row above the current row. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static NeuronSquareMesh2D. | |
| public static NeuronSquareMesh2D. |
| CENTER | back to summary |
|---|---|
| public static final NeuronSquareMesh2D. Current row. | |
| DOWN | back to summary |
|---|---|
| public static final NeuronSquareMesh2D. Row below the current row. | |
| UP | back to summary |
|---|---|
| public static final NeuronSquareMesh2D. Row above the current row. | |
| VerticalDirection | back to summary |
|---|---|
| private VerticalDirection() | |
| valueOf | back to summary |
|---|---|
| public static NeuronSquareMesh2D. | |
| values | back to summary |
|---|---|
| public static NeuronSquareMesh2D. | |