Top Description Fields Constructors Methods
org.apache.commons.math3.ml.neuralnet.twod.util

public Class SmoothedDataHistogram

extends Object
implements MapDataVisualization
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.ml.neuralnet.twod.util.MapDataVisualization
Imports
org.apache.commons.math3.ml.neuralnet.MapUtils, .Neuron, org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D, org.apache.commons.math3.ml.distance.DistanceMeasure, org.apache.commons.math3.exception.NumberIsTooSmallException

Visualization of high-dimensional data projection on a 2D-map. The method is described in Using Smoothed Data Histograms for Cluster Visualization in Self-Organizing Maps
by Elias Pampalk, Andreas Rauber and Dieter Merkl.
Since
3.6

Field Summary

Modifier and TypeField and Description
private final DistanceMeasure
distance

Distance.

private final double
membershipNormalization

Normalization factor.

private final int
smoothingBins

Smoothing parameter.

Constructor Summary

AccessConstructor and Description
public
SmoothedDataHistogram(int
Number of bins.
smoothingBins
,
DistanceMeasure
Distance.
distance
)

Method Summary

Modifier and TypeMethod and Description
public double[][]
computeImage(NeuronSquareMesh2D
Map.
map
,
Iterable<double[]>
Data.
data
)

Implements org.apache.commons.math3.ml.neuralnet.twod.util.MapDataVisualization.computeImage.

Creates an image of the data metrics when represented by the map.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

distanceback to summary
private final DistanceMeasure distance

Distance.

membershipNormalizationback to summary
private final double membershipNormalization

Normalization factor.

smoothingBinsback to summary
private final int smoothingBins

Smoothing parameter.

Constructor Detail

SmoothedDataHistogramback to summary
public SmoothedDataHistogram(int smoothingBins, DistanceMeasure distance)
Parameters
smoothingBins:int

Number of bins.

distance:DistanceMeasure

Distance.

Method Detail

computeImageback to summary
public double[][] computeImage(NeuronSquareMesh2D map, Iterable<double[]> data)

Implements org.apache.commons.math3.ml.neuralnet.twod.util.MapDataVisualization.computeImage.

Doc from org.apache.commons.math3.ml.neuralnet.twod.util.MapDataVisualization.computeImage.

Creates an image of the data metrics when represented by the map.

Parameters
map:NeuronSquareMesh2D

Map.

data:Iterable<double[]>

Data.

Returns:double[][]

a 2D-array (in row major order) representing the metrics.

Exceptions
NumberIsTooSmallException:
if the size of the map is smaller than the number of smoothing bins.