public class ToroidLayer extends GrowingLayer
GrowingLayer.Flip, GrowingLayer.Rotation, GrowingLayer.UpdaterThread
Layer.GridLayout, Layer.GridTopology
dim, gridLayout, gridTopology, maxFeatureValues, metric, metricWeighted, minFeatureValues, ROTATIONS, skippedNonSelected, trainedNonSelected, unitDistanceMatrix, units, xSize, ySize, zSize
Constructor and Description |
---|
ToroidLayer(int xSize,
int ySize,
int zSize,
java.lang.String metricName,
int dim,
boolean normalize,
boolean usePCA,
long seed,
InputData data) |
ToroidLayer(int xSize,
int ySize,
java.lang.String metricName,
int dim,
boolean normalize,
boolean usePCA,
long seed,
InputData data) |
ToroidLayer(int id,
Unit su,
int xSize,
int ySize,
int zSize,
java.lang.String metricName,
int dim,
boolean normalize,
boolean usePCA,
long seed,
InputData data) |
ToroidLayer(int id,
Unit su,
int xSize,
int ySize,
int zSize,
java.lang.String metricName,
int dim,
double[][][][] vectors,
long seed) |
ToroidLayer(int id,
Unit su,
int xSize,
int ySize,
java.lang.String metricName,
int dim,
boolean normalize,
boolean usePCA,
long seed,
InputData data) |
ToroidLayer(int id,
Unit su,
int xSize,
int ySize,
java.lang.String metricName,
int dim,
double[][][] vectors,
long seed) |
Modifier and Type | Method and Description |
---|---|
double |
getMapDistance(int x1,
int y1,
int x2,
int y2)
Toroid distance on the map
|
double |
getMapDistance(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
Returns the distance between two units on the map grid.
|
double |
getMapDistanceSq(int x1,
int y1,
int z1,
int x2,
int y2,
int z2) |
protected java.util.ArrayList<Unit> |
getNeighbouringUnits(Unit u)
Get direct neighbours of the given unit.
|
protected java.util.ArrayList<Unit> |
getNeighbouringUnits(Unit u,
double radius)
Convenience method for
GrowingLayer.getNeighbouringUnits(int, int, int, double) |
boolean |
hasNeighbours(int x,
int y)
On a toroid map each unit has a neighbour
|
private void |
initToroid() |
addDimension, calculateQuantizationErrorForUnits, checkRotation, clearLabels, clearMappedInput, clone, computeUnitFeatureWeights, equalWeights, flip, get2DUnits, getAllMappedDataNames, getAllMappedDataNames, getAllMappedDataNamesAsList, getAllSubMaps, getAllUnits, getBinAssignment, getBinCentres, getBinCentres, getBinCentresAsList, getBinDeviation, getCommonVectorLabelPrefix, getComponentPlane, getComponentPlane, getComponentPlane3D, getData, getDeviation, getDim, getExtremes, getGridLayout, getGridTopology, getIdString, getLevel, getMapDistance, getMapDistanceSq, getMaximumNumberOfMappedInputs, getMetric, getMostDissimilarNeighbor, getNeighbouringUnits, getNeighbouringUnits, getNeighbouringUnits, getNNearestInputs, getNNearestInputs, getNO_CPUS, getNumberOfMappedInputs, getNumberOfNotEmptyUnits, getNumberOfRegions, getQualityMeasure, getRevision, getSuperUnit, getUnit, getUnit, getUnitCount, getUnitDistanceMatrix, getUnitForDatum, getUnitForIndex, getUnitIndex, getUnitPath, getUnits, getVirtualLayer, getWinner, getWinner, getWinner, getWinnerFromQuery, getWinners, getWinners, getWinnersAndDistances, getWinnersFromQuery, getWinningInputDataFromQuery, getXSize, getYSize, getZSize, hasMappedInput, hasNeighbours, isEdgeColumn, isEdgeRow, isValidUnitLocation, isValidUnitLocation, mapData, mapDatum, maxNeighbourhoodRadius, neighbourhoodFeatureWeight, printSize, printUnitIndices, rotate, rotate, setCommonVectorLabelPrefix, setGridLayout, setGridTopology, setNO_CPUS, setQualityMeasure, setTrainingInterruptionListener, train, train, train, train, updateUnitsNormal
public ToroidLayer(int xSize, int ySize, java.lang.String metricName, int dim, boolean normalize, boolean usePCA, long seed, InputData data)
public ToroidLayer(int xSize, int ySize, int zSize, java.lang.String metricName, int dim, boolean normalize, boolean usePCA, long seed, InputData data)
public ToroidLayer(int id, Unit su, int xSize, int ySize, java.lang.String metricName, int dim, boolean normalize, boolean usePCA, long seed, InputData data)
public ToroidLayer(int id, Unit su, int xSize, int ySize, int zSize, java.lang.String metricName, int dim, boolean normalize, boolean usePCA, long seed, InputData data)
public ToroidLayer(int id, Unit su, int xSize, int ySize, java.lang.String metricName, int dim, double[][][] vectors, long seed) throws SOMToolboxException
public ToroidLayer(int id, Unit su, int xSize, int ySize, int zSize, java.lang.String metricName, int dim, double[][][][] vectors, long seed) throws SOMToolboxException
private void initToroid()
public double getMapDistance(int x1, int y1, int x2, int y2)
getMapDistance
in class GrowingLayer
public double getMapDistance(int x1, int y1, int z1, int x2, int y2, int z2)
Layer
getMapDistance
in interface Layer
getMapDistance
in class GrowingLayer
x1
- the horizontal position of the first unit.y1
- the vertical position of the first unit.z1
- the height position of the first unit.x2
- the horizontal position of the second unit.y2
- the vertical position of the second unit.z2
- the height position of the second unit.public double getMapDistanceSq(int x1, int y1, int z1, int x2, int y2, int z2)
getMapDistanceSq
in class GrowingLayer
public boolean hasNeighbours(int x, int y) throws LayerAccessException
hasNeighbours
in class GrowingLayer
LayerAccessException
protected java.util.ArrayList<Unit> getNeighbouringUnits(Unit u) throws LayerAccessException
GrowingLayer
getNeighbouringUnits
in class GrowingLayer
LayerAccessException
protected java.util.ArrayList<Unit> getNeighbouringUnits(Unit u, double radius) throws LayerAccessException
GrowingLayer
GrowingLayer.getNeighbouringUnits(int, int, int, double)
getNeighbouringUnits
in class GrowingLayer
LayerAccessException