| Modifier and Type | Class and Description |
|---|---|
| private static class | MapUtils.
Helper data structure holding a (Neuron, double) pair. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int[][] | Returns: the number of hits for each neuron in the map.Feature vectors. data, NeuronSquareMesh2D Network. map, DistanceMeasure Function to use for determining the best matching unit. distance)Computes the "hit" histogram of a two-dimensional map. |
| public static double | Returns: the error.Feature vectors. data, Iterable<Neuron> List of neurons to scan. neurons, DistanceMeasure Distance function. distance)Computes the quantization error. |
| public static double | Returns: the error.Feature vectors. data, Network Network. net, DistanceMeasure Distance function. distance)Computes the topographic error. |
| public static double[][] | Returns: the matrix of average distances.Network. map, DistanceMeasure Function to use for computing the average
distance from a neuron to its neighbours. distance)Computes the U-matrix of a two-dimensional map. |
| public static Neuron | Returns: the neuron whose features are closest to the given data.Data. features, Iterable<Neuron> List of neurons to scan. If the list is empty
neurons, DistanceMeasure null will be returned.Distance function. The neuron's features are
passed as the first argument to distance)DistanceMeasure#compute(double[], double[]).Finds the neuron that best matches the given features. |
| public static Pair | Returns: the two neurons whose features are closest to the given data.Data. features, Iterable<Neuron> List of neurons to scan. If the list is empty
neurons, DistanceMeasure null will be returned.Distance function. The neuron's features are
passed as the first argument to distance)DistanceMeasure#compute(double[], double[]).Finds the two neurons that best match the given features. |
| public static Neuron[] | Returns: the neurons, sorted in increasing order of distance in data space.Data. features, Iterable<Neuron> List of neurons to scan. If it is empty, an empty array
will be returned. neurons, DistanceMeasure Distance function. distance)Creates a list of neurons sorted in increased order of the distance
to the given |
| MapUtils | back to summary |
|---|---|
| private MapUtils() Class contains only static methods. | |
| computeHitHistogram | back to summary |
|---|---|
| public static int[][] computeHitHistogram(Iterable<double[]> data, NeuronSquareMesh2D map, DistanceMeasure distance) Computes the "hit" histogram of a two-dimensional map.
| |
| computeQuantizationError | back to summary |
|---|---|
| public static double computeQuantizationError(Iterable<double[]> data, Iterable<Neuron> neurons, DistanceMeasure distance) Computes the quantization error. The quantization error is the average distance between a feature vector and its "best matching unit" (closest neuron).
| |
| computeTopographicError | back to summary |
|---|---|
| public static double computeTopographicError(Iterable<double[]> data, Network net, DistanceMeasure distance) Computes the topographic error. The topographic error is the proportion of data for which first and second best matching units are not adjacent in the map.
| |
| computeU | back to summary |
|---|---|
| public static double[][] computeU(NeuronSquareMesh2D map, DistanceMeasure distance) Computes the U-matrix of a two-dimensional map.
| |
| findBest | back to summary |
|---|---|
| public static Neuron findBest(double[] features, Iterable<Neuron> neurons, DistanceMeasure distance) Finds the neuron that best matches the given features.
| |
| findBestAndSecondBest | back to summary |
|---|---|
| public static Pair Finds the two neurons that best match the given features.
| |
| sort | back to summary |
|---|---|
| public static Neuron[] sort(double[] features, Iterable<Neuron> neurons, DistanceMeasure distance) Creates a list of neurons sorted in increased order of the distance
to the given
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Comparator | COMPARATOR
Comparator. |
| private final Neuron | neuron
Key. |
| private final double | value
Value. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Neuron |
| COMPARATOR | back to summary |
|---|---|
| pack-priv static final Comparator<MapUtils. Comparator. | |
| neuron | back to summary |
|---|---|
| private final Neuron neuron Key. | |
| value | back to summary |
|---|---|
| private final double value Value. | |
| PairNeuronDouble | back to summary |
|---|---|
pack-priv PairNeuronDouble(Neuron neuron, double value)
| |
| getNeuron | back to summary |
|---|---|
public Neuron getNeuron()
| |