public class GrowingCellUnit extends Unit
Unit.FeatureWeightMode
Modifier and Type | Field and Description |
---|---|
private java.util.List<GrowingCellTetraheder> |
connectedTetraheders
The Tetraheders this Unit is connected to
|
private int |
diameter |
private double |
posX
Position of Unit in Displayspace X
|
private double |
posY
Position of Unit in Displayspace Y
|
private double |
signalCounter
The signal counter of this unit
|
private double |
voronoiEstimate
The estimate of space covered by this unit
|
Constructor and Description |
---|
GrowingCellUnit(GrowingCellLayer layer,
double[] weights)
Std Constructor, initializes the unit wich weights
|
Modifier and Type | Method and Description |
---|---|
void |
applyMovement(double deltax,
double deltay) |
GrowingCellUnit |
clone() |
void |
connect(GrowingCellTetraheder ct)
Connects this unit to Tetraheder ct
|
void |
disconnect(GrowingCellTetraheder t)
Disconnects the Unit from tetraheder t
|
boolean |
equals(java.lang.Object o) |
java.util.List<GrowingCellTetraheder> |
getConnectedTetraheders() |
int |
getDiameter() |
double |
getSignalCounter() |
double |
getVoronoiEstimate() |
double |
getX() |
int |
getXPos()
Returns the horizontal position of this unit on the map it is part of.
|
double |
getY() |
int |
getYPos()
Returns the vertical position of this unit on the map it is part of.
|
void |
putAtPosition(double x,
double y)
Puts the Unit at Position (x,y) in Display-Space
|
void |
setSignalCounter(double d) |
void |
setVoronoiEstimate(double voronoiEstimate) |
java.lang.String |
toString() |
addBatchSomNeighbour, addMappedInput, addMappedInput, addMappedInput, calculateQuantizationError, clearBatchSomList, clearLabels, clearMappedInput, copyFeatureWeights, getBestContextWeights, getContextGateLabels, getDim, getFeatureWeights, getGateWeights, getKaskiGateLabels, getKaskiLabels, getLabels, getLabels, getLayer, getMapIdString, getMapLevel, getMappedSOM, getMapXSize, getMapYSize, getMapZSize, getUnitLabels, getWeightVector, getWeightVectorFromBatchSomNeighbourhood, getZPos, initWeightVectorBySample, isTopLeftUnit, printCoordinates, printCoordinatesSpaceSeparated, printUnitDetails, removeMappedInput, restoreBestContextWeightLabels, restoreContextGateLabels, restoreGateWeightLabels, restoreKaskiGateLabels, restoreKaskiLabels, restoreLabels, restoreMappings, setContextGateLabels, setFeatureWeights, setKaskiGateLabels, setLabels, setMappedSOM, setPositions, setWeightVector, updatePosition, updatePosition
addMappedInput, clearMappedInputs, getInputIndex, getMappedInputDistance, getMappedInputDistance, getMappedInputDistances, getMappedInputName, getMappedInputNames, getMappedInputNamesAsList, getNumberOfMappedInputs, isMapped
private java.util.List<GrowingCellTetraheder> connectedTetraheders
private double signalCounter
private double voronoiEstimate
private int diameter
private double posX
private double posY
public GrowingCellUnit(GrowingCellLayer layer, double[] weights)
layer
- The layer on which this unit residesweights
- The weight vector of this unitpublic double getSignalCounter()
public void setSignalCounter(double d)
public double getVoronoiEstimate()
public void setVoronoiEstimate(double voronoiEstimate)
public void connect(GrowingCellTetraheder ct)
public java.util.List<GrowingCellTetraheder> getConnectedTetraheders()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void disconnect(GrowingCellTetraheder t)
public void putAtPosition(double x, double y)
public double getX()
public double getY()
public int getXPos()
Unit
public int getYPos()
Unit
public int getDiameter()
public void applyMovement(double deltax, double deltay)
deltax
- Movement along x-axisdeltay
- Movement along y-axispublic GrowingCellUnit clone()
clone
in class java.lang.Object