hep.aida.dev
Interface IDevFitDataIterator
-
- All Known Implementing Classes:
- FitDataIterator
public interface IDevFitDataIteratorIterator for the fit data allows to decouple abstract representation of data and independently traverse the data in the inner fitting loop.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
start
void start()
Position the iterator at the start. The starting position is right before the first element.
-
next
boolean next()
Move the iterator to the next element of the IFitData.- Returns:
trueIf the iterator is positioned on a valide element.
-
entries
int entries()
Get the total number of entries on which the iterator is supposed to loop on. This is needed to calculate the Chi2 of a fit.- Returns:
- The total number of entries.
-
vars
double[] vars()
Get 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.- Returns:
- The array of variables for the current data element.
-
value
double value() throws java.lang.RuntimeExceptionFor Chi2-type fits it returns the "height" for evaluating the contribution to the chi2 for the current element.- Returns:
- The value for the current element.
- Throws:
java.lang.RuntimeException- if the value is not available, like in unbinned-type fits.
-
error
double error() throws java.lang.RuntimeExceptionFor 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.- Returns:
- The error for the current element.
- Throws:
java.lang.RuntimeException- if the error is not available, like in unbinned-type fits.
-
minusError
double minusError() throws java.lang.RuntimeExceptionIf 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().- Returns:
- The minus error.
- Throws:
java.lang.RuntimeException- if the error is not available, like in unbinned-type fits.
-
-
DMelt 3.0 © DataMelt by jWork.ORG