hep.aida.ref.fitter.fitmethod
Class AbstractFitMethod
- java.lang.Object
-
- hep.aida.ref.fitter.fitmethod.AbstractFitMethod
-
- All Implemented Interfaces:
- IFitMethod
- Direct Known Subclasses:
- BinnedMaximumLikelihoodFitMethod, ChiSquaredFitMethod, CleverChiSquaredFitMethod, LeastSquaresFitMethod, UnbinnedMaximumLikelihoodFitMethod
public abstract class AbstractFitMethod extends java.lang.Object implements IFitMethod
-
-
Field Summary
-
Fields inherited from interface hep.aida.ext.IFitMethod
BINNED_FIT, UNBINNED_FIT
-
-
Constructor Summary
Constructors Constructor and Description AbstractFitMethod(int fitType, java.lang.String[] fitMethodNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclear()Clear the fitMethod.java.lang.ObjectcorrelationObject()Get the correlation object.doubleevaluate(IDevFitDataIterator dataIter, IFunction function)Evaluate the Objective Function for a given data iterator and a given function.double[]evaluateGradient(int dimension, IDevFitDataIterator dataIter, IFunction function)Evaluate the gradient of the Objective Function.java.lang.String[]fitMethodNames()Get the names for this fit method.intfitType()Return the fit type: BINNED_FIT if it is a binned fit, UNBINNED_FIT if unbinned.voidsetCorrelationObject(java.lang.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, java.lang.String[] fitMethodNames)
-
-
Method Detail
-
fitType
public int fitType()
Description copied from interface:IFitMethodReturn the fit type: BINNED_FIT if it is a binned fit, UNBINNED_FIT if unbinned.- Specified by:
fitTypein interfaceIFitMethod
-
fitMethodNames
public java.lang.String[] fitMethodNames()
Description copied from interface:IFitMethodGet 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:
fitMethodNamesin interfaceIFitMethod
-
evaluateGradient
public double[] evaluateGradient(int dimension, IDevFitDataIterator dataIter, IFunction function)Description copied from interface:IFitMethodEvaluate the gradient of the Objective Function.- Specified by:
evaluateGradientin interfaceIFitMethod
-
evaluate
public double evaluate(IDevFitDataIterator dataIter, IFunction function)
Description copied from interface:IFitMethodEvaluate the Objective Function for a given data iterator and a given function.- Specified by:
evaluatein interfaceIFitMethod
-
setCorrelationObject
public void setCorrelationObject(java.lang.Object correlationObj)
Description copied from interface:IFitMethodSet the correlation object among the data.- Specified by:
setCorrelationObjectin interfaceIFitMethod
-
clear
public void clear()
Description copied from interface:IFitMethodClear the fitMethod. This method is invoked before the function is evaluated.- Specified by:
clearin interfaceIFitMethod
-
correlationObject
public java.lang.Object correlationObject()
Description copied from interface:IFitMethodGet the correlation object.- Specified by:
correlationObjectin interfaceIFitMethod
-
-
DMelt 3.0 © DataMelt by jWork.ORG