Class QuantizationError
java.lang.Object
org.apache.commons.math3.ml.neuralnet.twod.util.QuantizationError
- All Implemented Interfaces:
MapDataVisualization
Computes the quantization error histogram.
Each bin will contain the average of the distances between samples
mapped to the corresponding unit and the weight vector of that unit.
- Since:
- 3.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]
computeImage
(NeuronSquareMesh2D map, Iterable<double[]> data) Creates an image of thedata
metrics when represented by themap
.
-
Constructor Details
-
QuantizationError
- Parameters:
distance
- Distance.
-
-
Method Details
-
computeImage
Creates an image of thedata
metrics when represented by themap
.- Specified by:
computeImage
in interfaceMapDataVisualization
- Parameters:
map
- Map.data
- Data.- Returns:
- a 2D-array (in row major order) representing the metrics.
-