at.tuwien.ifs.somtoolbox.layers.quality
Class SOMDistortion

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.layers.quality.AbstractQualityMeasure
      extended by at.tuwien.ifs.somtoolbox.layers.quality.SOMDistortion
All Implemented Interfaces:
QualityMeasure

public class SOMDistortion
extends AbstractQualityMeasure

Implementation of SOM Distortion Measure Quality.

Version:
$Id: SOMDistortion.java 3883 2010-11-02 17:13:23Z frank $
Author:
Michael Dittenbach

Field Summary
private  double distortion
           
private  double[][] hits
           
private  double[][] unitAverage
           
private  double[][] unitTotal
           
 
Fields inherited from class at.tuwien.ifs.somtoolbox.layers.quality.AbstractQualityMeasure
data, layer, mapQualityDescriptions, mapQualityNames, unitQualityDescriptions, unitQualityNames
 
Constructor Summary
SOMDistortion(Layer layer, InputData data)
           
 
Method Summary
 double getMapQuality(String name)
           
 double[][] getUnitQualities(String name)
           
private  double neighborhoodFunction(double dist)
           
private  double squaredDistance(InputDatum datum, double[] vector2)
           
 
Methods inherited from class at.tuwien.ifs.somtoolbox.layers.quality.AbstractQualityMeasure
getMapQualityDescriptions, getMapQualityNames, getUnitQualityDescriptions, getUnitQualityNames, instantiate, splitNameAndMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

distortion

private double distortion

hits

private double[][] hits

unitAverage

private double[][] unitAverage

unitTotal

private double[][] unitTotal
Constructor Detail

SOMDistortion

public SOMDistortion(Layer layer,
                     InputData data)
Method Detail

getMapQuality

public double getMapQuality(String name)
                     throws QualityMeasureNotFoundException
Throws:
QualityMeasureNotFoundException

getUnitQualities

public double[][] getUnitQualities(String name)
                            throws QualityMeasureNotFoundException
Throws:
QualityMeasureNotFoundException

neighborhoodFunction

private double neighborhoodFunction(double dist)

squaredDistance

private double squaredDistance(InputDatum datum,
                               double[] vector2)
                        throws MetricException
Throws:
MetricException