|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object databionics.esom.grid.Grid databionics.esom.grid.MatrixGrid
public abstract class MatrixGrid
Abstract base class for all grid structures that can store the weight vectors in a 2D matrix.
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
log
interface to log4j system |
protected cern.colt.matrix.DoubleMatrix2D |
weights
matrix to store weights |
Fields inherited from class databionics.esom.grid.Grid |
---|
dim, distanceFunction, distanceFunctionName, size |
Constructor Summary | |
---|---|
MatrixGrid()
Standard constructor |
|
MatrixGrid(int size,
int dim)
Constructor with sizes |
Method Summary | |
---|---|
cern.colt.matrix.DoubleMatrix1D |
getNeuron(int index)
Access to a weight vector by the neuron's index |
cern.colt.matrix.DoubleMatrix2D |
getWeights()
Get weights |
protected void |
init()
Initialize the matrix |
void |
setDim(int dim)
Set the value of dim. |
void |
setSize(int size)
Set the value of size. |
Methods inherited from class databionics.esom.grid.Grid |
---|
dim, findNeighbors, getDistanceFunction, getDistanceFunctionName, init, init, init, setDistanceFunction, setDistanceFunction, size, transformRadius |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger log
protected cern.colt.matrix.DoubleMatrix2D weights
Constructor Detail |
---|
public MatrixGrid()
public MatrixGrid(int size, int dim)
size
- number of grid pointsdim
- number of weights per neuronMethod Detail |
---|
public void setSize(int size)
setSize
in class Grid
size
- value of size.public void setDim(int dim)
setDim
in class Grid
dim
- size value of dim.protected void init()
public cern.colt.matrix.DoubleMatrix1D getNeuron(int index)
getNeuron
in class Grid
index
- index of neuronpublic cern.colt.matrix.DoubleMatrix2D getWeights()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |