hep.aida.ref.fitter.fitdata
Class FitDataIterator
- java.lang.Object
-
- hep.aida.ref.fitter.fitdata.FitDataIterator
-
- All Implemented Interfaces:
- IDevFitDataIterator
public class FitDataIterator extends java.lang.Object implements IDevFitDataIterator
-
-
Constructor Summary
Constructors Constructor and Description FitDataIterator(ITuple tuple)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intentries()Get the total number of entries on which the iterator is supposed to loop on.doubleerror()For Chi2-type fits it returns the error for the current element for the evaluation of the chi2 contribution of the current element.doubleminusError()If the IFitData provides asymmetric errors it returns the negative error on the current element.booleannext()Move the iterator to the next element of the IFitData.voidstart()Position the iterator at the start.doublevalue()For Chi2-type fits it returns the "height" for evaluating the contribution to the chi2 for the current element.double[]vars()Get the array containing the variables for the current data element.
-
-
-
Constructor Detail
-
FitDataIterator
public FitDataIterator(ITuple tuple)
-
-
Method Detail
-
entries
public int entries()
Description copied from interface:IDevFitDataIteratorGet the total number of entries on which the iterator is supposed to loop on. This is needed to calculate the Chi2 of a fit.- Specified by:
entriesin interfaceIDevFitDataIterator- Returns:
- The total number of entries.
-
next
public boolean next()
Description copied from interface:IDevFitDataIteratorMove the iterator to the next element of the IFitData.- Specified by:
nextin interfaceIDevFitDataIterator- Returns:
trueIf the iterator is positioned on a valide element.
-
start
public void start()
Description copied from interface:IDevFitDataIteratorPosition the iterator at the start. The starting position is right before the first element.- Specified by:
startin interfaceIDevFitDataIterator
-
value
public double value()
Description copied from interface:IDevFitDataIteratorFor Chi2-type fits it returns the "height" for evaluating the contribution to the chi2 for the current element.- Specified by:
valuein interfaceIDevFitDataIterator- Returns:
- The value for the current element.
-
error
public double error()
Description copied from interface:IDevFitDataIteratorFor Chi2-type fits it returns the error for the current element for the evaluation of the chi2 contribution of the current element. If the IFitData provides asymmetric errors it returns the positive error.- Specified by:
errorin interfaceIDevFitDataIterator- Returns:
- The error for the current element.
-
minusError
public double minusError()
Description copied from interface:IDevFitDataIteratorIf the IFitData provides asymmetric errors it returns the negative error on the current element. Otherwise it returns the same value returned by the method error().- Specified by:
minusErrorin interfaceIDevFitDataIterator- Returns:
- The minus error.
-
vars
public double[] vars()
Description copied from interface:IDevFitDataIteratorGet the array containing the variables for the current data element. The variables should be already in the right order for the value() method of the IFunction.- Specified by:
varsin interfaceIDevFitDataIterator- Returns:
- The array of variables for the current data element.
-
-
DMelt 3.0 © DataMelt by jWork.ORG