public class TopographicErrorHistogram extends java.lang.Object implements MapDataVisualization
| Modifier and Type | Field and Description |
|---|---|
private DistanceMeasure |
distance
Distance.
|
private boolean |
relativeCount
Whether to compute relative bin counts.
|
| Constructor and Description |
|---|
TopographicErrorHistogram(boolean relativeCount,
DistanceMeasure distance) |
| Modifier and Type | Method and Description |
|---|---|
double[][] |
computeImage(NeuronSquareMesh2D map,
java.lang.Iterable<double[]> data)
Creates an image of the
data metrics when represented by the
map. |
private final DistanceMeasure distance
private final boolean relativeCount
public TopographicErrorHistogram(boolean relativeCount,
DistanceMeasure distance)
relativeCount - Whether to compute relative bin counts.
If true, the data count in each bin will be divided by the total
number of samples mapped to the neuron represented by that bin.distance - Distance.public double[][] computeImage(NeuronSquareMesh2D map, java.lang.Iterable<double[]> data)
data metrics when represented by the
map.computeImage in interface MapDataVisualizationmap - Map.data - Data.Copyright (c) 2003-2017 Apache Software Foundation