|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object topology.HexagonalTopology
public class HexagonalTopology
HexagonalTopology is a topology where neurons are placed in hexagonal net. Even rows are shifted on place to right.
Constructor Summary | |
---|---|
HexagonalTopology(int row,
int col)
Creates a new instance of HexagonalTopology with specified numbers of rows and columns. |
Method Summary | |
---|---|
int |
getColNumber()
Return number of columns |
java.util.ArrayList |
getConnectedNeurons(int neuronNumber)
Return ArrayList of neurons connected to neuron with neuron Number |
java.util.TreeMap |
getNeighbourhood(int neuronNumber)
Return TreeMap containing information about neuron and distance to neuron for which neighbourhood is calculated |
Coords |
getNeuronCoordinate(int neuronNumber)
Return Coord object contains information about neuron co-ordinate in Hexagonal Topology |
int |
getNeuronNumber(Coords coords)
Return neuron number of specyfied co-ordiante |
int |
getNumbersOfNeurons()
Return number of neurons in topology. |
int |
getRadius()
Return radius for calculate neighbourhood |
int |
getRowNumber()
Return number of rows |
void |
setColNumber(int colNumber)
Set number of columns |
void |
setRadius(int radius)
Set radius |
void |
setRowNumber(int rowNumber)
Set number of rows |
java.lang.String |
toString()
Returns a string representation of the topology. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HexagonalTopology(int row, int col)
row
- number of rowscol
- number of columnsMethod Detail |
---|
public void setRowNumber(int rowNumber)
setRowNumber
in interface TopologyModel
rowNumber
- numbers of rowspublic void setColNumber(int colNumber)
setColNumber
in interface TopologyModel
colNumber
- numbers of columnspublic int getRowNumber()
getRowNumber
in interface TopologyModel
public int getColNumber()
getColNumber
in interface TopologyModel
public void setRadius(int radius)
setRadius
in interface TopologyModel
radius
- Radiuspublic int getRadius()
getRadius
in interface TopologyModel
public java.util.ArrayList getConnectedNeurons(int neuronNumber)
getConnectedNeurons
in interface TopologyModel
neuronNumber
- neuron number
ArrayList
public int getNumbersOfNeurons()
getNumbersOfNeurons
in interface TopologyModel
public java.util.TreeMap getNeighbourhood(int neuronNumber)
getNeighbourhood
in interface TopologyModel
neuronNumber
- neuron number
TreeMap
public int getNeuronNumber(Coords coords)
getNeuronNumber
in interface TopologyModel
coords
- neuron coordinate
public Coords getNeuronCoordinate(int neuronNumber)
getNeuronCoordinate
in interface TopologyModel
neuronNumber
- neuron number
public java.lang.String toString()
toString
in interface TopologyModel
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |