hep.aida.ref.fitter.fitmethod
Class AbstractFitMethod

java.lang.Object
  extended by hep.aida.ref.fitter.fitmethod.AbstractFitMethod
All Implemented Interfaces:
hep.aida.ext.IFitMethod
Direct Known Subclasses:
BinnedMaximumLikelihoodFitMethod, ChiSquaredFitMethod, CleverChiSquaredFitMethod, LeastSquaresFitMethod, UnbinnedMaximumLikelihoodFitMethod

public abstract class AbstractFitMethod
extends Object
implements hep.aida.ext.IFitMethod


Field Summary
 
Fields inherited from interface hep.aida.ext.IFitMethod
BINNED_FIT, UNBINNED_FIT
 
Constructor Summary
AbstractFitMethod(int fitType, String[] fitMethodNames)
           
 
Method Summary
 void clear()
          Clear the fitMethod.
 Object correlationObject()
          Get the correlation object.
 double evaluate(hep.aida.dev.IDevFitDataIterator dataIter, hep.aida.IFunction function)
          Evaluate the Objective Function for a given data iterator and a given function.
 double[] evaluateGradient(int dimension, hep.aida.dev.IDevFitDataIterator dataIter, hep.aida.IFunction function)
          Evaluate the gradient of the Objective Function.
 String[] fitMethodNames()
          Get the names for this fit method.
 int fitType()
          Return the fit type: BINNED_FIT if it is a binned fit, UNBINNED_FIT if unbinned.
 void setCorrelationObject(Object correlationObj)
          Set the correlation object among the data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hep.aida.ext.IFitMethod
evaluateGradientSumElement, evaluateSumElement
 

Constructor Detail

AbstractFitMethod

public AbstractFitMethod(int fitType,
                         String[] fitMethodNames)
Method Detail

fitType

public int fitType()
Description copied from interface: hep.aida.ext.IFitMethod
Return the fit type: BINNED_FIT if it is a binned fit, UNBINNED_FIT if unbinned.

Specified by:
fitType in interface hep.aida.ext.IFitMethod

fitMethodNames

public String[] fitMethodNames()
Description copied from interface: hep.aida.ext.IFitMethod
Get the names for this fit method. The first one in the array is the default. The array cannot be null. It must have at least one name.

Specified by:
fitMethodNames in interface hep.aida.ext.IFitMethod

evaluateGradient

public double[] evaluateGradient(int dimension,
                                 hep.aida.dev.IDevFitDataIterator dataIter,
                                 hep.aida.IFunction function)
Description copied from interface: hep.aida.ext.IFitMethod
Evaluate the gradient of the Objective Function.

Specified by:
evaluateGradient in interface hep.aida.ext.IFitMethod

evaluate

public double evaluate(hep.aida.dev.IDevFitDataIterator dataIter,
                       hep.aida.IFunction function)
Description copied from interface: hep.aida.ext.IFitMethod
Evaluate the Objective Function for a given data iterator and a given function.

Specified by:
evaluate in interface hep.aida.ext.IFitMethod

setCorrelationObject

public void setCorrelationObject(Object correlationObj)
Description copied from interface: hep.aida.ext.IFitMethod
Set the correlation object among the data.

Specified by:
setCorrelationObject in interface hep.aida.ext.IFitMethod

clear

public void clear()
Description copied from interface: hep.aida.ext.IFitMethod
Clear the fitMethod. This method is invoked before the function is evaluated.

Specified by:
clear in interface hep.aida.ext.IFitMethod

correlationObject

public Object correlationObject()
Description copied from interface: hep.aida.ext.IFitMethod
Get the correlation object.

Specified by:
correlationObject in interface hep.aida.ext.IFitMethod


jHepWork 3.0 ©