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

public Class TopographicErrorHistogram

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, .Network, org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D, org.apache.commons.math3.ml.distance.DistanceMeasure, org.apache.commons.math3.util.Pair

Computes the topographic error histogram. Each bin will contain the number of data for which the first and second best matching units are not adjacent in the map.
Since
3.6

Field Summary

Modifier and TypeField and Description
private final DistanceMeasure
distance

Distance.

private final boolean
relativeCount

Whether to compute relative bin counts.

Constructor Summary

AccessConstructor and Description
public
TopographicErrorHistogram(boolean
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.
relativeCount
,
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.

relativeCountback to summary
private final boolean relativeCount

Whether to compute relative bin counts.

Constructor Detail

TopographicErrorHistogramback to summary
public TopographicErrorHistogram(boolean relativeCount, DistanceMeasure distance)
Parameters
relativeCount:boolean

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: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.