Class HitHistogram
java.lang.Object
org.apache.commons.math3.ml.neuralnet.twod.util.HitHistogram
- All Implemented Interfaces:
MapDataVisualization
Computes the hit histogram.
Each bin will contain the number of data for which the corresponding
neuron is the best matching unit.
- Since:
- 3.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]computeImage(NeuronSquareMesh2D map, Iterable<double[]> data) Creates an image of thedatametrics when represented by themap.
-
Constructor Details
-
HitHistogram
- Parameters:
normalizeCount- Whether to compute relative bin counts. Iftrue, the data count in each bin will be divided by the total number of samples.distance- Distance.
-
-
Method Details
-
computeImage
Creates an image of thedatametrics when represented by themap.- Specified by:
computeImagein interfaceMapDataVisualization- Parameters:
map- Map.data- Data.- Returns:
- a 2D-array (in row major order) representing the metrics.
-