databionics.esom.grid
Class CircularGrid1D
java.lang.Object
databionics.esom.grid.Grid
databionics.esom.grid.MatrixGrid
databionics.esom.grid.CircularGrid1D
public class CircularGrid1D
- extends MatrixGrid
One dimensional circle of neurons
Field Summary |
protected static org.apache.log4j.Logger |
log
interface to log4j system |
Method Summary |
void |
findNeighbors(int index,
int radius,
cern.colt.list.IntArrayList neighbors,
cern.colt.list.IntArrayList distances)
Find all neighbors of a neuron within a given radius along
with the distance from the center. |
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
CircularGrid1D
public CircularGrid1D()
- Standard constructor
CircularGrid1D
public CircularGrid1D(int size,
int dim)
- Constructor with sizes
- Parameters:
size
- number of grid pointsdim
- number of weights per neuron
findNeighbors
public void findNeighbors(int index,
int radius,
cern.colt.list.IntArrayList neighbors,
cern.colt.list.IntArrayList distances)
- Find all neighbors of a neuron within a given radius along
with the distance from the center. The results are saved
in the two list parameters given by reference.
- Specified by:
findNeighbors
in class Grid
- Parameters:
index
- index of neuronradius
- radius around centerneighbors
- list of neighbors' indicesdistance
- corresponding distances
Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.