|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttopology.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 columns| Method Detail |
|---|
public void setRowNumber(int rowNumber)
setRowNumber in interface TopologyModelrowNumber - numbers of rowspublic void setColNumber(int colNumber)
setColNumber in interface TopologyModelcolNumber - numbers of columnspublic int getRowNumber()
getRowNumber in interface TopologyModelpublic int getColNumber()
getColNumber in interface TopologyModelpublic void setRadius(int radius)
setRadius in interface TopologyModelradius - Radiuspublic int getRadius()
getRadius in interface TopologyModelpublic java.util.ArrayList getConnectedNeurons(int neuronNumber)
getConnectedNeurons in interface TopologyModelneuronNumber - neuron number
ArrayListpublic int getNumbersOfNeurons()
getNumbersOfNeurons in interface TopologyModelpublic java.util.TreeMap getNeighbourhood(int neuronNumber)
getNeighbourhood in interface TopologyModelneuronNumber - neuron number
TreeMappublic int getNeuronNumber(Coords coords)
getNeuronNumber in interface TopologyModelcoords - neuron coordinate
public Coords getNeuronCoordinate(int neuronNumber)
getNeuronCoordinate in interface TopologyModelneuronNumber - neuron number
public java.lang.String toString()
toString in interface TopologyModeltoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||