Class SmoothedDataHistogram
- java.lang.Object
-
- org.apache.commons.math3.ml.neuralnet.twod.util.SmoothedDataHistogram
-
- All Implemented Interfaces:
MapDataVisualization
public class SmoothedDataHistogram extends java.lang.Object implements MapDataVisualization
Visualization of high-dimensional data projection on a 2D-map. The method is described inUsing Smoothed Data Histograms for Cluster Visualization in Self-Organizing Maps
by Elias Pampalk, Andreas Rauber and Dieter Merkl.- Since:
- 3.6
-
-
Field Summary
Fields Modifier and Type Field Description private DistanceMeasure
distance
Distance.private double
membershipNormalization
Normalization factor.private int
smoothingBins
Smoothing parameter.
-
Constructor Summary
Constructors Constructor Description SmoothedDataHistogram(int smoothingBins, DistanceMeasure distance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[][]
computeImage(NeuronSquareMesh2D map, java.lang.Iterable<double[]> data)
Creates an image of thedata
metrics when represented by themap
.
-
-
-
Field Detail
-
smoothingBins
private final int smoothingBins
Smoothing parameter.
-
distance
private final DistanceMeasure distance
Distance.
-
membershipNormalization
private final double membershipNormalization
Normalization factor.
-
-
Constructor Detail
-
SmoothedDataHistogram
public SmoothedDataHistogram(int smoothingBins, DistanceMeasure distance)
- Parameters:
smoothingBins
- Number of bins.distance
- Distance.
-
-
Method Detail
-
computeImage
public double[][] computeImage(NeuronSquareMesh2D map, java.lang.Iterable<double[]> data)
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.
- Throws:
NumberIsTooSmallException
- if the size of themap
is smaller than the number ofsmoothing bins
.
-
-