public class AdaptiveCoordinatesVirtualLayer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_EXTENSION |
private java.util.HashMap<java.lang.Double,java.lang.Integer> |
startedVirtualAdaptionIn |
private double[] |
thresholds |
private java.util.HashMap<java.lang.Double,AdaptiveCoordinatesVirtualUnit[][]> |
virtualUnits |
private int |
xSize |
private int |
ySize |
Constructor and Description |
---|
AdaptiveCoordinatesVirtualLayer(int ySize,
int xSize,
double... acThreshold) |
AdaptiveCoordinatesVirtualLayer(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
double[] |
getThresholds() |
AdaptiveCoordinatesVirtualUnit |
getVirtualUnit(double threshold,
int x,
int y) |
int |
getXSize() |
int |
getYSize() |
protected void |
printAdaptiveCoordinates() |
void |
setDistanceToWinner(int x,
int y,
double distanceToWinners) |
void |
updateUnitsVirtualSpacePos(Unit[][][] units,
DistanceMetric metric,
Unit winner,
InputDatum input,
int curIteration)
Updates the virtual space position of all map units with respect to the input datum and the according winner
unit.
|
void |
writeToFile(java.lang.String fDir,
java.lang.String fName) |
public static final java.lang.String FILE_EXTENSION
private java.util.HashMap<java.lang.Double,AdaptiveCoordinatesVirtualUnit[][]> virtualUnits
private java.util.HashMap<java.lang.Double,java.lang.Integer> startedVirtualAdaptionIn
private double[] thresholds
private int xSize
private int ySize
public AdaptiveCoordinatesVirtualLayer(int ySize, int xSize, double... acThreshold)
public AdaptiveCoordinatesVirtualLayer(java.lang.String fileName) throws java.io.IOException, SOMToolboxException
java.io.IOException
SOMToolboxException
public void updateUnitsVirtualSpacePos(Unit[][][] units, DistanceMetric metric, Unit winner, InputDatum input, int curIteration)
winner
- the winner unitinput
- the input datumcurIteration
- the current iterationpublic AdaptiveCoordinatesVirtualUnit getVirtualUnit(double threshold, int x, int y)
public int getXSize()
public int getYSize()
public void writeToFile(java.lang.String fDir, java.lang.String fName) throws java.io.IOException
java.io.IOException
protected void printAdaptiveCoordinates()
public void setDistanceToWinner(int x, int y, double distanceToWinners)
public double[] getThresholds()