| Modifier and Type | Field and Description |
|---|---|
| private final DistanceMeasure | distance
Distance. |
| private final boolean | individualDistances
Whether to show distance between each pair of neighbouring units. |
| Access | Constructor and Description |
|---|---|
| public | UnifiedDistanceMatrix(boolean
If individualDistances, DistanceMeasure true, the 8 individual
inter-units distances will be computed. They will be stored in additional pixels around each of
the original units of the 2D-map. The additional pixels that lie
along a "diagonal" are shared by two pairs of units: their
value will be set to the average distance between the units belonging
to each of the pairs. The value zero will be stored in the pixel
corresponding to the location of a unit of the 2D-map.
If false, only the average distance between a unit and all its
neighbours will be computed (and stored in the pixel corresponding to
that unit of the 2D-map). In that case, the number of neighbours taken
into account depends on the network's
neighbourhood type.Distance. distance)Simple constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private double[][] | Returns: an image representing the average distances.Map. map)Computes the distances between a unit of the map and its neighbours. |
| public double[][] | computeImage(NeuronSquareMesh2D
Map. map)Implements org. Creates an image of the |
| private double[][] | Returns: an image representing the individual distances.Map. map)Computes the distances between a unit of the map and its neighbours. |
| distance | back to summary |
|---|---|
| private final DistanceMeasure distance Distance. | |
| individualDistances | back to summary |
|---|---|
| private final boolean individualDistances Whether to show distance between each pair of neighbouring units. | |
| UnifiedDistanceMatrix | back to summary |
|---|---|
| public UnifiedDistanceMatrix(boolean individualDistances, DistanceMeasure distance) Simple constructor.
| |
| averageDistances | back to summary |
|---|---|
| private double[][] averageDistances(NeuronSquareMesh2D map) Computes the distances between a unit of the map and its neighbours.
| |
| computeImage | back to summary |
|---|---|
| public double[][] computeImage(NeuronSquareMesh2D map) Implements org. Doc from org. Creates an image of the
| |
| individualDistances | back to summary |
|---|---|
| private double[][] individualDistances(NeuronSquareMesh2D map) Computes the distances between a unit of the map and its
neighbours.
The image will contain more pixels than the number of neurons
in the given
| |