|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttopology.MatrixTopology
public class MatrixTopology
Matric Topology is a topology where neurons is set in rows and columns.
| Constructor Summary | |
|---|---|
MatrixTopology(int row,
int col)
Creates a new instance of matrixTopology with specified numbers of rows and columns. |
|
MatrixTopology(int row,
int col,
int radius)
Creates a new instance of matrixTopology with specified numbers of rows, columns and radius. |
|
| 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 containng information about neuron and distance to neuron for which neighbourhood is calculated |
Coords |
getNeuronCoordinate(int neuronNumber)
Return Coord object contain intormation about neuron co-ordinate |
int |
getNeuronNumber(Coords coords)
Return neuron number with specyfied co-ordiante |
int |
getNumbersOfNeurons()
Return number of neuron. |
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 numbers 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 MatrixTopology(int row,
int col)
row - number of rowscol - number of columns
public MatrixTopology(int row,
int col,
int radius)
row - number of rowscol - number of columnsradius - radius| Method Detail |
|---|
public java.lang.String toString()
toString in interface TopologyModeltoString in class java.lang.Objectpublic int getColNumber()
getColNumber in interface TopologyModelpublic java.util.ArrayList getConnectedNeurons(int neuronNumber)
getConnectedNeurons in interface TopologyModelneuronNumber - neuron number
ArrayListpublic java.util.TreeMap getNeighbourhood(int neuronNumber)
getNeighbourhood in interface TopologyModelneuronNumber - neuron number
TreeMappublic Coords getNeuronCoordinate(int neuronNumber)
getNeuronCoordinate in interface TopologyModelneuronNumber - neuron number
public int getNeuronNumber(Coords coords)
getNeuronNumber in interface TopologyModelcoords - neuron coordinate
public int getNumbersOfNeurons()
getNumbersOfNeurons in interface TopologyModelpublic int getRadius()
getRadius in interface TopologyModelpublic int getRowNumber()
getRowNumber in interface TopologyModelpublic void setColNumber(int colNumber)
setColNumber in interface TopologyModelcolNumber - numbers of columnspublic void setRadius(int radius)
setRadius in interface TopologyModelradius - Radiuspublic void setRowNumber(int rowNumber)
setRowNumber in interface TopologyModelrowNumber - numbers of rows
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||