FreeHEP API
Version v1.1

hep.fitting
Interface FitDataSource1D

All Known Implementing Classes:
HepFittableDataSource1D

public interface FitDataSource1D

An interface that represents the data that the fitter requires to perform a fit

Author:
Manj Benning

Method Summary
 int getNumberOfBins()
           
 double getX(int i)
           
 double getY(int i)
           
 double getYError(int i)
           
 double getYErrorMinus(int i)
           
 double getYErrorPlus(int i)
           
 boolean hasAsymmetricErrorBars()
           
 

Method Detail

getX

public double getX(int i)
Returns:
An X value via a specific array index

getY

public double getY(int i)
Returns:
A Y value via a specific array index

getYError

public double getYError(int i)
Returns:
A Y error value via a specific array index, used for symmetric errors

getYErrorPlus

public double getYErrorPlus(int i)
Returns:
A positive Y error value via a specific array index, used for Asymmetric errors

getYErrorMinus

public double getYErrorMinus(int i)
Returns:
A negative Y error value via a specific array index, used for Asymmetric errors

getNumberOfBins

public int getNumberOfBins()
Returns:
The number of bins used in the fit

hasAsymmetricErrorBars

public boolean hasAsymmetricErrorBars()
Returns:
A boolean depending on whether the error is asymmetric or not

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.