at.tuwien.ifs.somtoolbox.layers.quality
Class QuantizationError
java.lang.Object
at.tuwien.ifs.somtoolbox.layers.quality.AbstractQualityMeasure
at.tuwien.ifs.somtoolbox.layers.quality.QuantizationError
- All Implemented Interfaces:
- QualityMeasure
public class QuantizationError
- extends AbstractQualityMeasure
Calculates the Quantisation Error, defined as the average distance between and input data vector and the
weight-vector of its best-matching-unit.
Calculates the following values:
- Unit
- Quantisation error (qe). Calculated for each unit as the sum of the distances between the input vectors mapped to
this unit to the unit's weight vector.
- Mean quantisation error (mqe). Calculated for each unit as the (qe/|mapped vectors|), i.e. the qe divided by the
number of input data vectors mapped on this unit.
- Map
- Mean quantisation error (mqe), caluclated as the sum of all unit qe's divided by the number of units with at
least one mapped input data vector.
- Mean mean quantisation error (mmqe), calculated as the sum of all unit mqe's divided by the number of units with
at least one mapped input data vector.
- Version:
- $Id: QuantizationError.java 3883 2010-11-02 17:13:23Z frank $
- Author:
- Michael Dittenbach, Rudolf Mayer
Field Summary |
private double |
mmqe
|
private double |
mqe
|
private double[][] |
unitMqe
|
private double[][] |
unitQe
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mmqe
private double mmqe
mqe
private double mqe
unitMqe
private double[][] unitMqe
unitQe
private double[][] unitQe
QuantizationError
public QuantizationError(Layer layer,
InputData data)
getMapQuality
public double getMapQuality(String name)
throws QualityMeasureNotFoundException
- Throws:
QualityMeasureNotFoundException
getUnitQualities
public double[][] getUnitQualities(String name)
throws QualityMeasureNotFoundException
- Throws:
QualityMeasureNotFoundException