|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.tuwien.ifs.somtoolbox.layers.GrowingLayer
at.tuwien.ifs.somtoolbox.layers.MnemonicGrowingLayer
public class MnemonicGrowingLayer
A mnemonic layer is a rectangular layer that might not have all grid positions occupied by units.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class at.tuwien.ifs.somtoolbox.layers.GrowingLayer |
|---|
GrowingLayer.Flip, GrowingLayer.Rotation, GrowingLayer.UpdaterThread |
| Nested classes/interfaces inherited from interface at.tuwien.ifs.somtoolbox.layers.Layer |
|---|
Layer.GridLayout, Layer.GridTopology |
| Field Summary | |
|---|---|
(package private) Integer[][][][][][] |
distanceMatrix_
|
private int |
unitCount
|
| Fields inherited from class at.tuwien.ifs.somtoolbox.layers.GrowingLayer |
|---|
dim, gridLayout, gridTopology, maxFeatureValues, metric, metricWeighted, minFeatureValues, ROTATIONS, skippedNonSelected, trainedNonSelected, unitDistanceMatrix, units, xSize, ySize, zSize |
| Constructor Summary | |
|---|---|
MnemonicGrowingLayer(int id,
Unit su,
int x,
int y,
int z,
String metricName,
int d,
double[][][][] vectors,
long seed)
|
|
MnemonicGrowingLayer(int id,
Unit su,
int x,
int y,
String metricName,
int d,
double[][][] vectors,
long seed)
|
|
| Method Summary | |
|---|---|
void |
clearMappedInput()
Removes all mapped input data from the units. |
void |
countDistances(int distanceFromStart,
Unit startUnit,
Unit currentUnit)
|
Unit[] |
getAllUnits()
Returns all units of the layer in an array. |
double |
getMapDistance(int x1,
int y1,
int x2,
int y2)
|
double |
getMapDistance(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
Returns the distance between two units on the map grid. |
int |
getUnitCount()
|
Unit |
getWinner(InputDatum input)
Returns the winner unit for a given input datum specified by argument input. |
UnitDistance[] |
getWinnersAndDistances(InputDatum input,
int num)
Returns a number of best-matching units and distances sorted by distance (ascending) for a given input datum. |
void |
initDistances()
|
protected void |
updateUnitsNormal(Unit winner,
InputDatum input,
double learnrate,
double sigma)
Updates the weight vectors of the all map units with respect to the input datum and the according winner unit. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Integer[][][][][][] distanceMatrix_
private int unitCount
| Constructor Detail |
|---|
public MnemonicGrowingLayer(int id,
Unit su,
int x,
int y,
String metricName,
int d,
double[][][] vectors,
long seed)
throws SOMToolboxException
SOMToolboxException
public MnemonicGrowingLayer(int id,
Unit su,
int x,
int y,
int z,
String metricName,
int d,
double[][][][] vectors,
long seed)
throws SOMToolboxException
SOMToolboxException| Method Detail |
|---|
public void countDistances(int distanceFromStart,
Unit startUnit,
Unit currentUnit)
public void initDistances()
public Unit getWinner(InputDatum input)
GrowingLayerinput.
getWinner in class GrowingLayerinput - the input datum for which the winner unit will be searched.
public void clearMappedInput()
GrowingLayer
clearMappedInput in class GrowingLayer
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 LayergetMapDistance in class GrowingLayerx1 - 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.
protected void updateUnitsNormal(Unit winner,
InputDatum input,
double learnrate,
double sigma)
GrowingLayer
updateUnitsNormal in class GrowingLayerwinner - the winner unit.input - the input datum.learnrate - the learnrate.sigma - the width of the Gaussian determining the neighborhood radius.public Unit[] getAllUnits()
GrowingLayer
getAllUnits in interface LayergetAllUnits in class GrowingLayer
public UnitDistance[] getWinnersAndDistances(InputDatum input,
int num)
GrowingLayer
getWinnersAndDistances in class GrowingLayerinput - the input datum for which the winner unit will be searched.num - the number of best-matching units.
Vector containing an array of Unit (elementAt(0)) and array of double (elementAt(1))
containing best-matching units sorted ascending by distance from the input datum.public int getUnitCount()
getUnitCount in class GrowingLayer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||