FreeHEP API
Version current

hep.aida.util.comparison
Class AbstractComparisonAlgorithm

java.lang.Object
  extended byhep.aida.util.comparison.AbstractComparisonAlgorithm
All Implemented Interfaces:
IComparisonAlgorithm
Direct Known Subclasses:
AndersonDarlingComparisonAlgorithm, Chi2ComparisonAlgorithm, FiszCramerVonMisesComparisonAlgorithm, KolmogorovSmirnovComparisonAlgorithm, KuiperComparisonAlgorithm, TikuComparisonAlgorithm

public abstract class AbstractComparisonAlgorithm
extends Object
implements IComparisonAlgorithm

Author:
The FreeHEP team @ SLAC.
Source Code:
AbstractComparisonAlgorithm.java

Field Summary
static int ANY_DATA
           
static int ANY_NUMBER_OF_EVENTS
           
static int ONLY_BINNED_DATA
           
static int ONLY_SAME_NUMBER_OF_EVENTS
           
static int ONLY_UNBINNED_DATA
           
 
Method Summary
abstract  String[] algorithmNames()
          Get the algorithm name
 void applyOptions()
           
 boolean canCompare(IComparisonData d1, IComparisonData d2)
          Check if this algorithm can compare two data sets.
 IComparisonResult compare(IComparisonData d1, IComparisonData d2, String options)
          Compare two distributions.
 int entries(IComparisonData d)
           
 double[] getCumulativeArray(IComparisonData d)
           
 boolean isOptionSet(String option)
           
 double matchLowerBound()
           
 double matchUpperBound()
           
 int nDof(IComparisonData d1, IComparisonData d2)
           
 String optionValue(String option)
           
abstract  double quality(IComparisonData d1, IComparisonData d2)
           
 double rejectionLevel()
           
 void setRejectionLevel()
           
 double sumOfWeights(IComparisonData d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONLY_BINNED_DATA

public static final int ONLY_BINNED_DATA
See Also:
Constant Field Values

ONLY_UNBINNED_DATA

public static final int ONLY_UNBINNED_DATA
See Also:
Constant Field Values

ANY_DATA

public static final int ANY_DATA
See Also:
Constant Field Values

ONLY_SAME_NUMBER_OF_EVENTS

public static final int ONLY_SAME_NUMBER_OF_EVENTS
See Also:
Constant Field Values

ANY_NUMBER_OF_EVENTS

public static final int ANY_NUMBER_OF_EVENTS
See Also:
Constant Field Values
Method Detail

compare

public IComparisonResult compare(IComparisonData d1,
                                 IComparisonData d2,
                                 String options)
Description copied from interface: IComparisonAlgorithm
Compare two distributions.

Specified by:
compare in interface IComparisonAlgorithm

quality

public abstract double quality(IComparisonData d1,
                               IComparisonData d2)

applyOptions

public void applyOptions()

nDof

public int nDof(IComparisonData d1,
                IComparisonData d2)

matchLowerBound

public double matchLowerBound()

matchUpperBound

public double matchUpperBound()

isOptionSet

public boolean isOptionSet(String option)

optionValue

public String optionValue(String option)

algorithmNames

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

Specified by:
algorithmNames in interface IComparisonAlgorithm

setRejectionLevel

public void setRejectionLevel()

rejectionLevel

public double rejectionLevel()

getCumulativeArray

public double[] getCumulativeArray(IComparisonData d)

canCompare

public boolean canCompare(IComparisonData d1,
                          IComparisonData d2)
Description copied from interface: IComparisonAlgorithm
Check if this algorithm can compare two data sets.

Specified by:
canCompare in interface IComparisonAlgorithm

sumOfWeights

public double sumOfWeights(IComparisonData d)

entries

public int entries(IComparisonData d)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.