org.retro.neural
Class Map2D
java.lang.Object
org.retro.neural.Map2D
- Direct Known Subclasses:
- IGG, SOM
- public abstract class Map2D
- extends java.lang.Object
|
Constructor Summary |
protected |
Map2D(double[][] X,
int _N1,
int _N2,
double[] P,
java.util.Random rand)
|
|
Method Summary |
protected void |
adapt(java.awt.Point s,
SNVector X,
double et,
int t,
int tmax)
|
int |
getColumnDimension()
Returns the number of columns in this map. |
int |
getRowDimension()
Returns the number of rows in this map. |
int[] |
getUnit(double[] v)
|
protected int[] |
getUnit(SNVector x)
|
int[][] |
getUnits()
Returns indices of grid points from reference vectors. |
double[][][] |
getWeights()
Returns current reference vector weights. |
protected abstract void |
initA()
|
protected void |
learn(double e_i,
double e_f,
int tmax,
java.lang.String name)
|
protected SNVector |
randomSignal()
|
protected static double |
scale(double i,
double f,
int t,
int tmax)
|
protected abstract double |
sigma(int t,
int tmax)
|
protected static double[] |
updf(double[][] X)
|
protected SNVector |
vector(java.awt.Point a)
|
protected java.awt.Point |
winner(SNVector X)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REPORT_MSEC
protected static final long REPORT_MSEC
- See Also:
- Constant Field Values
_A
protected SNVector[][] _A
_N1
protected int _N1
_N2
protected int _N2
_PX
protected SNVector[] _PX
_wheel
protected org.retro.neural.Roulette _wheel
_percent_done
protected int _percent_done
Map2D
protected Map2D(double[][] X,
int _N1,
int _N2,
double[] P,
java.util.Random rand)
getWeights
public double[][][] getWeights()
- Returns current reference vector weights. Weights are returned
as a 2D grid of vectors.
- Returns:
- reference vector weights
getUnit
public int[] getUnit(double[] v)
getUnits
public int[][] getUnits()
- Returns indices of grid points from reference vectors. Points
is returned as an array of 2D integer arrays.
- Returns:
- grid points corresponding to reference vectors
getRowDimension
public int getRowDimension()
- Returns the number of rows in this map.
- Returns:
- the number of rows in this map
getColumnDimension
public int getColumnDimension()
- Returns the number of columns in this map.
- Returns:
- the number of columns in this map
learn
protected void learn(double e_i,
double e_f,
int tmax,
java.lang.String name)
adapt
protected void adapt(java.awt.Point s,
SNVector X,
double et,
int t,
int tmax)
randomSignal
protected SNVector randomSignal()
winner
protected java.awt.Point winner(SNVector X)
getUnit
protected int[] getUnit(SNVector x)
vector
protected SNVector vector(java.awt.Point a)
initA
protected abstract void initA()
sigma
protected abstract double sigma(int t,
int tmax)
updf
protected static double[] updf(double[][] X)
scale
protected static double scale(double i,
double f,
int t,
int tmax)