FreeHEP API
Version current

hep.aida.util.comparison
Class Chi2ComparisonAlgorithm

java.lang.Object
  extended byhep.aida.util.comparison.AbstractComparisonAlgorithm
      extended byhep.aida.util.comparison.Chi2ComparisonAlgorithm
All Implemented Interfaces:
IComparisonAlgorithm

public class Chi2ComparisonAlgorithm
extends AbstractComparisonAlgorithm

Author:
The FreeHEP team @ SLAC. Algorithm taken from http://www.ge.infn.it/geant4/analysis/HEPstatistics/
Source Code:
Chi2ComparisonAlgorithm.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
Chi2ComparisonAlgorithm()
           
 
Method Summary
 String[] algorithmNames()
          Get the algorithm name
 boolean canCompare(IComparisonData d1, IComparisonData d2)
          Check if this algorithm can compare two data sets.
 int nDof(IComparisonData d1, IComparisonData d2)
           
 double quality(IComparisonData d1, IComparisonData d2)
           
 
Methods inherited from class hep.aida.util.comparison.AbstractComparisonAlgorithm
applyOptions, compare, entries, getCumulativeArray, isOptionSet, matchLowerBound, matchUpperBound, optionValue, rejectionLevel, setRejectionLevel, sumOfWeights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chi2ComparisonAlgorithm

public Chi2ComparisonAlgorithm()
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

nDof

public int nDof(IComparisonData d1,
                IComparisonData d2)
Overrides:
nDof in class AbstractComparisonAlgorithm

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
Overrides:
canCompare in class AbstractComparisonAlgorithm

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.