FreeHEP API
Version current

hep.aida.util.comparison
Class KolmogorovSmirnovComparisonAlgorithm

java.lang.Object
  extended byhep.aida.util.comparison.AbstractComparisonAlgorithm
      extended byhep.aida.util.comparison.KolmogorovSmirnovComparisonAlgorithm
All Implemented Interfaces:
IComparisonAlgorithm
Direct Known Subclasses:
GoodmanComparisonAlgorithm

public class KolmogorovSmirnovComparisonAlgorithm
extends AbstractComparisonAlgorithm

Author:
The FreeHEP team @ SLAC. Algorithm taken from http://www.ge.infn.it/geant4/analysis/HEPstatistics/
Source Code:
KolmogorovSmirnovComparisonAlgorithm.java

Field Summary
 
Fields inherited from class hep.aida.util.comparison.AbstractComparisonAlgorithm
ANY_DATA, ANY_NUMBER_OF_EVENTS, ONLY_BINNED_DATA, ONLY_SAME_NUMBER_OF_EVENTS, ONLY_UNBINNED_DATA
 
Constructor Summary
KolmogorovSmirnovComparisonAlgorithm()
           
 
Method Summary
 String[] algorithmNames()
          Get the algorithm name
protected  double evaluateDistance(IComparisonData d1, IComparisonData d2)
           
protected  double probability(double distance)
           
 double quality(IComparisonData d1, IComparisonData d2)
           
 
Methods inherited from class hep.aida.util.comparison.AbstractComparisonAlgorithm
applyOptions, canCompare, compare, entries, getCumulativeArray, isOptionSet, matchLowerBound, matchUpperBound, nDof, optionValue, rejectionLevel, setRejectionLevel, sumOfWeights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KolmogorovSmirnovComparisonAlgorithm

public KolmogorovSmirnovComparisonAlgorithm()
Method Detail

algorithmNames

public String[] algorithmNames()
Description copied from interface: IComparisonAlgorithm
Get the algorithm name

Specified by:
algorithmNames in interface IComparisonAlgorithm
Specified by:
algorithmNames in class AbstractComparisonAlgorithm

quality

public double quality(IComparisonData d1,
                      IComparisonData d2)
Specified by:
quality in class AbstractComparisonAlgorithm

evaluateDistance

protected double evaluateDistance(IComparisonData d1,
                                  IComparisonData d2)

probability

protected double probability(double distance)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.