Class LocationFinder
java.lang.Object
org.apache.commons.math3.ml.neuralnet.twod.util.LocationFinder
Helper class to find the grid coordinates of a neuron.
- Since:
- 3.6
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Container holding a (row, column) pair. -
Constructor Summary
ConstructorsConstructorDescriptionBuilds a finder to retrieve the locations of neurons that belong to the givenmap
. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a neuron's grid coordinates.
-
Constructor Details
-
LocationFinder
Builds a finder to retrieve the locations of neurons that belong to the givenmap
.- Parameters:
map
- Map.- Throws:
MathIllegalStateException
- if the network contains non-unique identifiers. This indicates an inconsistent state due to a bug in the construction code of the underlyingnetwork
.
-
-
Method Details
-
getLocation
Retrieves a neuron's grid coordinates.- Parameters:
n
- Neuron.- Returns:
- the (row, column) coordinates of
n
, ornull
if no such neuron belongs to themap used to build this instance
.
-