databionics.esom.grid
Class ToroidRectangularGrid
java.lang.Object
databionics.esom.grid.Grid
databionics.esom.grid.MatrixGrid
databionics.esom.grid.RectangularGrid
databionics.esom.grid.ToroidRectangularGrid
- Direct Known Subclasses:
- ToroidGrid
public abstract class ToroidRectangularGrid
- extends RectangularGrid
Abstract base class for all toroid grid structures with a rectangular shaped
grid.
Overrites the method coordinates2index such that coordinates
outside of the grid are wrapped around.
Field Summary |
protected static org.apache.log4j.Logger |
log
interface to log4j system |
Method Summary |
int |
coordinates2index(int row,
int col)
Convert row/column coordinates on grid to unique index
Coordinates outside of the grid are wrapped around. |
void |
shift(int rows,
int columns)
shift grid by relative coordinates |
Methods inherited from class databionics.esom.grid.RectangularGrid |
coordinates2index, getColumns, getNeuron, getRows, getWts, gridDistance, index2col, index2col, index2row, index2row, init, loadWeights, manhattanGridDistance, maximumGridDistance, saveWeights, saveWeights, setColumns, setRows, squaredEuclideanGridDistance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.log4j.Logger log
- interface to log4j system
ToroidRectangularGrid
public ToroidRectangularGrid()
- Standard constructor
ToroidRectangularGrid
public ToroidRectangularGrid(int rows,
int cols,
int dim)
- Constructor with sizes
- Parameters:
rows
- Rows of gridcols
- Columns of griddim
- number of weights per neuron
coordinates2index
public int coordinates2index(int row,
int col)
- Convert row/column coordinates on grid to unique index
Coordinates outside of the grid are wrapped around.
- Overrides:
coordinates2index
in class RectangularGrid
- Parameters:
row
- row number on gridcol
- column number on grid
- Returns:
- unique index of neuron
shift
public void shift(int rows,
int columns)
- shift grid by relative coordinates
- Parameters:
columns
- to shiftrows
- to shift
Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.