Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Fit::BinData Class Reference

Class describing the binned data sets : vectors of x coordinates, y values and optionally error on y values and error on coordinates The dimension of the coordinate is free There are 4 different options:

  • only coordinates and values (for binned likelihood fits) : kNoError
  • coordinate, values and error on values (for normal least square fits) : kValueError
  • coordinate, values, error on values and coordinates (for effective least square fits) : kCoordError
  • coordinate, values, error on coordinates and asymmetric error on values : kAsymError

In addition there is the option to construct Bindata copying the data in (using the DataVector class) or using pointer to external data (DataWrapper) class. In general is found to be more efficient to copy the data. In case of really large data sets for limiting memory consumption then the other option can be used Specialized constructor exists for data up to 3 dimensions.

When the data are copying in the number of points can be set later (or re-set) using Initialize and the data are inserted one by one using the Add method. It is mandatory to set the size before using the Add method.

Definition at line 52 of file BinData.h.

Public Types

enum  ErrorType { kNoError , kValueError , kCoordError , kAsymError }
 

Public Member Functions

 BinData (const BinData &rhs)
 copy constructors
 
 BinData (const DataOptions &opt, const DataRange &range, unsigned int maxpoints=0, unsigned int dim=1, ErrorType err=kValueError)
 constructor from options and range default is 1D and value errors
 
 BinData (const DataOptions &opt, unsigned int maxpoints=0, unsigned int dim=1, ErrorType err=kValueError)
 constructor from option and default range
 
 BinData (unsigned int maxpoints=0, unsigned int dim=1, ErrorType err=kValueError)
 constructor from dimension of point and max number of points (to pre-allocate vector) Give a zero value and then use Initialize later one if the size is not known
 
 BinData (unsigned int n, const double *dataX, const double *dataY, const double *dataZ, const double *val, const double *ex, const double *ey, const double *ez, const double *eval)
 constructor from external data for 3D with errors on coordinate and value
 
 BinData (unsigned int n, const double *dataX, const double *dataY, const double *val, const double *ex, const double *ey, const double *eval)
 constructor from external data for 2D with errors on coordinate and value
 
 BinData (unsigned int n, const double *dataX, const double *val, const double *ex, const double *eval)
 constructors using external data
 
 ~BinData () override
 destructor
 
void Add (const double *x, double val)
 add multi-dim coordinate data with only value
 
void Add (const double *x, double val, const double *ex, double elval, double ehval)
 add multi-dim coordinate data with both error in coordinates and value
 
void Add (const double *x, double val, const double *ex, double eval)
 add multi-dim coordinate data with both error in coordinates and value
 
void Add (const double *x, double val, double eval)
 add multi-dim coordinate data with only error in value
 
void Add (double x, double y)
 add one dim data with only coordinate and values
 
void Add (double x, double y, double ex, double ey)
 add one dim data with error in the coordinate (x) in this case store the value (y) error and not the inverse
 
void Add (double x, double y, double ex, double eyl, double eyh)
 add one dim data with error in the coordinate (x) and asymmetric errors in the value (y) in this case store the y errors and not the inverse
 
void Add (double x, double y, double ey)
 add one dim data with no error in the coordinate (x) in this case store the inverse of the error in the value (y)
 
void AddBinUpEdge (const double *xup)
 add the bin width data, a pointer to an array with the bin upper edge information.
 
void Append (unsigned int newPoints, unsigned int dim=1, ErrorType err=kValueError)
 Equivalent to Initialize()
 
const doubleBinUpEdge (unsigned int ipoint) const
 return an array containing the upper edge of the bin for coordinate i In case of empty bin they could be merged in a single larger bin Return a NULL pointer if the bin width is not stored
 
const doubleCoordErrors (unsigned int ipoint) const
 Return a pointer to the errors in the coordinates for the given fit point.
 
double Error (unsigned int ipoint) const
 Return the error on the given point.
 
const doubleErrorPtr (unsigned int ipoint) const
 Return a pointer to the error (or the inverse error) on the value for a given point depending on the type of data.
 
void GetAsymError (unsigned int ipoint, double &lowError, double &highError) const
 
double GetBinUpEdgeComponent (unsigned int ipoint, unsigned int icoord) const
 returns a single coordinate error component of a point.
 
void GetBinUpEdgeCoordinates (unsigned int ipoint, double *x) const
 Thread save version of function retrieving the bin up-edge in case of multidimensions.
 
double GetCoordErrorComponent (unsigned int ipoint, unsigned int icoord) const
 returns a single coordinate error component of a point.
 
ErrorType GetErrorType () const
 retrieve the errortype
 
const doubleGetPoint (unsigned int ipoint, double &value) const
 retrieve at the same time a pointer to the coordinate data and the fit value More efficient than calling Coords(i) and Value(i)
 
const doubleGetPoint (unsigned int ipoint, double &value, double &invError) const
 retrieve in a single call a pointer to the coordinate data, value and inverse error for the given fit point.
 
const doubleGetPointError (unsigned int ipoint, double &errlow, double &errhigh) const
 Get errors on the point (coordinate errors and asymmetric value errors) for the given fit point.
 
const doubleGetPointError (unsigned int ipoint, double &errvalue) const
 Retrieve the errors on the point (coordinate and value) for the given fit point It must be called only when the coordinate errors are stored otherwise it will produce an assert.
 
bool HasBinEdges () const
 query if the data store the bin edges instead of the center
 
bool HaveAsymErrors () const
 flag to control if data provides asymmetric errors on the value
 
bool HaveCoordErrors () const
 flag to control if data provides error on the coordinates
 
void Initialize (unsigned int newPoints, unsigned int dim=1, ErrorType err=kValueError)
 Preallocate a data set with given size, dimension and error type.
 
double InvError (unsigned int ipoint) const
 Return the inverse of error on the value for the given fit point useful when error in the coordinates are not stored and then this is used directly this as the weight in the least square function.
 
bool IsWeighted () const
 return true if the data set is weighted We cannot compute ourselves because sometimes errors are filled with 1 instead of zero (as in ROOT::Fit::FillData )
 
BinDataLogTransform ()
 apply a Log transformation of the data values can be used for example when fitting an exponential or gaussian Transform the data in place need to copy if want to preserve original data The data sets must not contain negative values.
 
BinDataoperator= (const BinData &rhs)
 assignment operator
 
double RefVolume () const
 retrieve the reference volume used to normalize the data when the option bin volume is set
 
void SetRefVolume (double value)
 set the reference volume used to normalize the data when the option bin volume is set
 
double SumOfContent () const
 compute the total sum of the data content (sum of weights in case of weighted data set)
 
double SumOfError2 () const
 compute the total sum of the error square (sum of weight square in case of a weighted data set)
 
double Value (unsigned int ipoint) const
 return the value for the given fit point
 
const doubleValuePtr (unsigned int ipoint) const
 return a pointer to the value for the given fit point
 
- Public Member Functions inherited from ROOT::Fit::FitData
 FitData (const DataOptions &opt, const DataRange &range, unsigned int maxpoints=0, unsigned int dim=1)
 construct passing options and data range
 
 FitData (const DataOptions &opt, unsigned int maxpoints=0, unsigned int dim=1)
 construct passing options and default data range
 
 FitData (const DataRange &range, unsigned int maxpoints, const double *dataX)
 constructor for multi-dim external data and a range (data are copied inside according to the range) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin
 
 FitData (const DataRange &range, unsigned int maxpoints, const double *dataX, const double *dataY)
 constructor for multi-dim external data and a range (data are copied inside according to the range) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin
 
 FitData (const DataRange &range, unsigned int maxpoints, const double *dataX, const double *dataY, const double *dataZ)
 constructor for multi-dim external data and a range (data are copied inside according to the range) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin
 
template<class Iterator >
 FitData (const DataRange &range, unsigned int maxpoints, unsigned int dim, Iterator dataItr)
 constructor for multi-dim external data and a range (data are copied inside according to the range) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin
 
 FitData (const DataRange &range, unsigned int maxpoints=0, unsigned int dim=1)
 construct passing range and default options
 
 FitData (const FitData &rhs)
 
 FitData (unsigned int maxpoints=0, unsigned int dim=1)
 construct with default option and data range
 
 FitData (unsigned int n, const double *dataX)
 constructor from external data for 1D data
 
 FitData (unsigned int n, const double *dataX, const double *dataY)
 constructor from external data for 2D data
 
 FitData (unsigned int n, const double *dataX, const double *dataY, const double *dataZ)
 constructor from external data for 3D data
 
template<class Iterator >
 FitData (unsigned int n, unsigned int dim, Iterator dataItr)
 constructor for multi-dim external data (data are not copied inside) Uses as argument an iterator of a list (or vector) containing the const double * of the data An example could be the std::vector<const double *>::begin In case of weighted data, the external data must have a dim+1 lists of data The passed dim refers just to the coordinate size
 
virtual ~FitData ()
 dummy virtual destructor
 
void Add (const double *x)
 add multi-dim coordinate data with only value
 
void Add (double x)
 add one dim data with only coordinate and values
 
void Append (unsigned int newPoints, unsigned int dim=1)
 
const doubleCoords (unsigned int ipoint) const
 return a pointer to the coordinates data for the given fit point
 
const doubleGetCoordComponent (unsigned int ipoint, unsigned int icoord) const
 returns a single coordinate component of a point.
 
const std::vector< const double * > & GetCoordDataPtrs () const
 direct access to coord data ptrs
 
unsigned int NDim () const
 return coordinate data dimension
 
unsigned int NPoints () const
 return number of fit points
 
FitDataoperator= (const FitData &rhs)
 
DataOptionsOpt ()
 
const DataOptionsOpt () const
 access to options
 
const DataRangeRange () const
 access to range
 
unsigned int Size () const
 return number of fit points
 

Protected Member Functions

void ComputeSums ()
 
void InitBinEdge ()
 
void InitDataVector ()
 
void InitializeErrors ()
 
void UnWrap ()
 
- Protected Member Functions inherited from ROOT::Fit::FitData
void InitCoordsVector ()
 initializer routines to set the corresponding pointers right The vectors must NOT be resized after this initialization without setting the corresponding pointers in the same moment ( has to be an atomic operation in case of multithreading ).
 
template<class Iterator >
void InitFromRange (Iterator dataItr)
 
void UnWrap ()
 

Private Attributes

std::vector< std::vector< double > > fBinEdge
 
std::vector< std::vector< double > > fCoordErrors
 
std::vector< const double * > fCoordErrorsPtr
 
std::vector< doublefData
 Stores the data values the same way as the coordinates.
 
std::vector< doublefDataError
 
std::vector< doublefDataErrorHigh
 
const doublefDataErrorHighPtr
 
std::vector< doublefDataErrorLow
 
const doublefDataErrorLowPtr
 
const doublefDataErrorPtr
 
const doublefDataPtr
 
ErrorType fErrorType
 
bool fIsWeighted = false
 flag to indicate weighted data
 
doublefpTmpBinEdgeVector
 not threadsafe stuff!
 
doublefpTmpCoordErrorVector
 not threadsafe stuff!
 
double fRefVolume
 reference bin volume - used to normalize the bins in case of variable bins data
 
double fSumContent = 0
 total sum of the bin data content
 
double fSumError2 = 0
 total sum square of the errors
 

Additional Inherited Members

- Static Protected Member Functions inherited from ROOT::Fit::FitData
static constexpr unsigned VectorPadding (const unsigned)
 If VecCore is not defined, there is no vectorization available and the SIMD vector size will always be one.
 
- Protected Attributes inherited from ROOT::Fit::FitData
unsigned int fDim
 
unsigned int fMaxPoints
 
unsigned int fNPoints
 
bool fWrapped
 

#include <Fit/BinData.h>

Inheritance diagram for ROOT::Fit::BinData:
[legend]

Member Enumeration Documentation

◆ ErrorType

Enumerator
kNoError 
kValueError 
kCoordError 
kAsymError 

Definition at line 56 of file BinData.h.

Constructor & Destructor Documentation

◆ BinData() [1/7]

ROOT::Fit::BinData::BinData ( unsigned int  maxpoints = 0,
unsigned int  dim = 1,
ErrorType  err = kValueError 
)
explicit

constructor from dimension of point and max number of points (to pre-allocate vector) Give a zero value and then use Initialize later one if the size is not known

Definition at line 26 of file BinData.cxx.

◆ BinData() [2/7]

ROOT::Fit::BinData::BinData ( const DataOptions opt,
unsigned int  maxpoints = 0,
unsigned int  dim = 1,
ErrorType  err = kValueError 
)
explicit

constructor from option and default range

Definition at line 42 of file BinData.cxx.

◆ BinData() [3/7]

ROOT::Fit::BinData::BinData ( const DataOptions opt,
const DataRange range,
unsigned int  maxpoints = 0,
unsigned int  dim = 1,
ErrorType  err = kValueError 
)

constructor from options and range default is 1D and value errors

constructor from options and range efault is 1D and value errors

Definition at line 58 of file BinData.cxx.

◆ BinData() [4/7]

ROOT::Fit::BinData::BinData ( unsigned int  n,
const double dataX,
const double val,
const double ex,
const double eval 
)

constructors using external data

constructurs using external data

constructor from external data for 1D with errors on coordinate and value

Definition at line 75 of file BinData.cxx.

◆ BinData() [5/7]

ROOT::Fit::BinData::BinData ( unsigned int  n,
const double dataX,
const double dataY,
const double val,
const double ex,
const double ey,
const double eval 
)

constructor from external data for 2D with errors on coordinate and value

Definition at line 113 of file BinData.cxx.

◆ BinData() [6/7]

ROOT::Fit::BinData::BinData ( unsigned int  n,
const double dataX,
const double dataY,
const double dataZ,
const double val,
const double ex,
const double ey,
const double ez,
const double eval 
)

constructor from external data for 3D with errors on coordinate and value

Definition at line 151 of file BinData.cxx.

◆ ~BinData()

ROOT::Fit::BinData::~BinData ( )
override

destructor

Definition at line 190 of file BinData.cxx.

◆ BinData() [7/7]

ROOT::Fit::BinData::BinData ( const BinData rhs)

copy constructors

Definition at line 223 of file BinData.cxx.

Member Function Documentation

◆ Add() [1/8]

void ROOT::Fit::BinData::Add ( const double x,
double  val 
)

add multi-dim coordinate data with only value

Definition at line 506 of file BinData.cxx.

◆ Add() [2/8]

void ROOT::Fit::BinData::Add ( const double x,
double  val,
const double ex,
double  elval,
double  ehval 
)

add multi-dim coordinate data with both error in coordinates and value

Definition at line 579 of file BinData.cxx.

◆ Add() [3/8]

void ROOT::Fit::BinData::Add ( const double x,
double  val,
const double ex,
double  eval 
)

add multi-dim coordinate data with both error in coordinates and value

Definition at line 548 of file BinData.cxx.

◆ Add() [4/8]

void ROOT::Fit::BinData::Add ( const double x,
double  val,
double  eval 
)

add multi-dim coordinate data with only error in value

add multi-dim coordinate data with only error in value The class stores internally the inverse of the error in this case

Definition at line 526 of file BinData.cxx.

◆ Add() [5/8]

void ROOT::Fit::BinData::Add ( double  x,
double  y 
)

add one dim data with only coordinate and values

Definition at line 410 of file BinData.cxx.

◆ Add() [6/8]

void ROOT::Fit::BinData::Add ( double  x,
double  y,
double  ex,
double  ey 
)

add one dim data with error in the coordinate (x) in this case store the value (y) error and not the inverse

Definition at line 454 of file BinData.cxx.

◆ Add() [7/8]

void ROOT::Fit::BinData::Add ( double  x,
double  y,
double  ex,
double  eyl,
double  eyh 
)

add one dim data with error in the coordinate (x) and asymmetric errors in the value (y) in this case store the y errors and not the inverse

Definition at line 481 of file BinData.cxx.

◆ Add() [8/8]

void ROOT::Fit::BinData::Add ( double  x,
double  y,
double  ey 
)

add one dim data with no error in the coordinate (x) in this case store the inverse of the error in the value (y)

Definition at line 430 of file BinData.cxx.

◆ AddBinUpEdge()

void ROOT::Fit::BinData::AddBinUpEdge ( const double xup)

add the bin width data, a pointer to an array with the bin upper edge information.

This is needed when fitting with integral options The information is added for the previously inserted point. BinData::Add must be called before

This is needed when fitting with integral or Bin volume normalization options The information is added for the previously inserted point. BinData::Add must be called before

Definition at line 615 of file BinData.cxx.

◆ Append()

void ROOT::Fit::BinData::Append ( unsigned int  newPoints,
unsigned int  dim = 1,
ErrorType  err = kValueError 
)

Equivalent to Initialize()

preallocate a data set with given size , dimension and error type (to get the full point size) If the data set already exists and it is having the compatible point size space for the new points is created in the data sets, while if not compatible the old data are erased and new space of new size is allocated.

(i.e if exists initialize is equivalent to a resize( NPoints() + maxpoints)

Definition at line 322 of file BinData.cxx.

◆ BinUpEdge()

const double * ROOT::Fit::BinData::BinUpEdge ( unsigned int  ipoint) const
inline

return an array containing the upper edge of the bin for coordinate i In case of empty bin they could be merged in a single larger bin Return a NULL pointer if the bin width is not stored

Definition at line 519 of file BinData.h.

◆ ComputeSums()

void ROOT::Fit::BinData::ComputeSums ( )
protected

Definition at line 816 of file BinData.cxx.

◆ CoordErrors()

const double * ROOT::Fit::BinData::CoordErrors ( unsigned int  ipoint) const
inline

Return a pointer to the errors in the coordinates for the given fit point.

Definition at line 412 of file BinData.h.

◆ Error()

double ROOT::Fit::BinData::Error ( unsigned int  ipoint) const
inline

Return the error on the given point.

Safer method returning in any case the error and not the inverse as in the function above.

Definition at line 262 of file BinData.h.

◆ ErrorPtr()

const double * ROOT::Fit::BinData::ErrorPtr ( unsigned int  ipoint) const
inline

Return a pointer to the error (or the inverse error) on the value for a given point depending on the type of data.

  • If the data contains only value error (e.g. from histograms) returns a pointer to the inverse of the errors.
  • If the data contains errors in coordinates and value (e.g from TGraphErrors) returns a pointer to the corresponding value error (NOT the inverse).
  • If the data contains asymmetric errors return a pointer to the average error (NOT the inverse): 0.5(eu + el).
  • If the data does not contain errors return a nullptr.

Definition at line 249 of file BinData.h.

◆ GetAsymError()

void ROOT::Fit::BinData::GetAsymError ( unsigned int  ipoint,
double lowError,
double highError 
) const
inline

Definition at line 307 of file BinData.h.

◆ GetBinUpEdgeComponent()

double ROOT::Fit::BinData::GetBinUpEdgeComponent ( unsigned int  ipoint,
unsigned int  icoord 
) const
inline

returns a single coordinate error component of a point.

This function is threadsafe in contrast to Coords(...) and can easily get vectorized by the compiler in loops running over the ipoint-index.

Definition at line 502 of file BinData.h.

◆ GetBinUpEdgeCoordinates()

void ROOT::Fit::BinData::GetBinUpEdgeCoordinates ( unsigned int  ipoint,
double x 
) const
inline

Thread save version of function retrieving the bin up-edge in case of multidimensions.

Definition at line 532 of file BinData.h.

◆ GetCoordErrorComponent()

double ROOT::Fit::BinData::GetCoordErrorComponent ( unsigned int  ipoint,
unsigned int  icoord 
) const
inline

returns a single coordinate error component of a point.

This function is threadsafe in contrast to Coords(...) and can easily get vectorized by the compiler in loops running over the ipoint-index.

Definition at line 395 of file BinData.h.

◆ GetErrorType()

ErrorType ROOT::Fit::BinData::GetErrorType ( ) const
inline

retrieve the errortype

Definition at line 562 of file BinData.h.

◆ GetPoint() [1/2]

const double * ROOT::Fit::BinData::GetPoint ( unsigned int  ipoint,
double value 
) const
inline

retrieve at the same time a pointer to the coordinate data and the fit value More efficient than calling Coords(i) and Value(i)

Definition at line 381 of file BinData.h.

◆ GetPoint() [2/2]

const double * ROOT::Fit::BinData::GetPoint ( unsigned int  ipoint,
double value,
double invError 
) const
inline

retrieve in a single call a pointer to the coordinate data, value and inverse error for the given fit point.

To be used only when type is kValueError or kNoError. In the last case the value 1 is returned for the error.

Definition at line 439 of file BinData.h.

◆ GetPointError() [1/2]

const double * ROOT::Fit::BinData::GetPointError ( unsigned int  ipoint,
double errlow,
double errhigh 
) const
inline

Get errors on the point (coordinate errors and asymmetric value errors) for the given fit point.

It must be called only when the coordinate errors and asymmetric errors are stored otherwise it will produce an assert.

Definition at line 480 of file BinData.h.

◆ GetPointError() [2/2]

const double * ROOT::Fit::BinData::GetPointError ( unsigned int  ipoint,
double errvalue 
) const
inline

Retrieve the errors on the point (coordinate and value) for the given fit point It must be called only when the coordinate errors are stored otherwise it will produce an assert.

Definition at line 462 of file BinData.h.

◆ HasBinEdges()

bool ROOT::Fit::BinData::HasBinEdges ( ) const
inline

query if the data store the bin edges instead of the center

Definition at line 545 of file BinData.h.

◆ HaveAsymErrors()

bool ROOT::Fit::BinData::HaveAsymErrors ( ) const
inline

flag to control if data provides asymmetric errors on the value

Definition at line 146 of file BinData.h.

◆ HaveCoordErrors()

bool ROOT::Fit::BinData::HaveCoordErrors ( ) const
inline

flag to control if data provides error on the coordinates

Definition at line 134 of file BinData.h.

◆ InitBinEdge()

void ROOT::Fit::BinData::InitBinEdge ( )
protected

Definition at line 727 of file BinData.cxx.

◆ InitDataVector()

void ROOT::Fit::BinData::InitDataVector ( )
protected

Definition at line 647 of file BinData.cxx.

◆ Initialize()

void ROOT::Fit::BinData::Initialize ( unsigned int  newPoints,
unsigned int  dim = 1,
ErrorType  err = kValueError 
)
inline

Preallocate a data set with given size, dimension and error type.

If the data set already exists, newPoints are appended to the existing data set. (i.e., if the data exists Initialize() is equivalent to a resize( NPoints() + maxpoints)). Initialize() and Append() are equivalent.

Definition at line 122 of file BinData.h.

◆ InitializeErrors()

void ROOT::Fit::BinData::InitializeErrors ( )
protected

Definition at line 653 of file BinData.cxx.

◆ InvError()

double ROOT::Fit::BinData::InvError ( unsigned int  ipoint) const
inline

Return the inverse of error on the value for the given fit point useful when error in the coordinates are not stored and then this is used directly this as the weight in the least square function.

Definition at line 325 of file BinData.h.

◆ IsWeighted()

bool ROOT::Fit::BinData::IsWeighted ( ) const
inline

return true if the data set is weighted We cannot compute ourselves because sometimes errors are filled with 1 instead of zero (as in ROOT::Fit::FillData )

Definition at line 584 of file BinData.h.

◆ LogTransform()

BinData & ROOT::Fit::BinData::LogTransform ( )

apply a Log transformation of the data values can be used for example when fitting an exponential or gaussian Transform the data in place need to copy if want to preserve original data The data sets must not contain negative values.

IN case it does, an empty data set is returned

Definition at line 351 of file BinData.cxx.

◆ operator=()

BinData & ROOT::Fit::BinData::operator= ( const BinData rhs)

assignment operator

Definition at line 232 of file BinData.cxx.

◆ RefVolume()

double ROOT::Fit::BinData::RefVolume ( ) const
inline

retrieve the reference volume used to normalize the data when the option bin volume is set

Definition at line 552 of file BinData.h.

◆ SetRefVolume()

void ROOT::Fit::BinData::SetRefVolume ( double  value)
inline

set the reference volume used to normalize the data when the option bin volume is set

Definition at line 557 of file BinData.h.

◆ SumOfContent()

double ROOT::Fit::BinData::SumOfContent ( ) const
inline

compute the total sum of the data content (sum of weights in case of weighted data set)

Definition at line 571 of file BinData.h.

◆ SumOfError2()

double ROOT::Fit::BinData::SumOfError2 ( ) const
inline

compute the total sum of the error square (sum of weight square in case of a weighted data set)

Definition at line 577 of file BinData.h.

◆ UnWrap()

void ROOT::Fit::BinData::UnWrap ( )
protected

Definition at line 745 of file BinData.cxx.

◆ Value()

double ROOT::Fit::BinData::Value ( unsigned int  ipoint) const
inline

return the value for the given fit point

Definition at line 220 of file BinData.h.

◆ ValuePtr()

const double * ROOT::Fit::BinData::ValuePtr ( unsigned int  ipoint) const
inline

return a pointer to the value for the given fit point

Definition at line 232 of file BinData.h.

Member Data Documentation

◆ fBinEdge

std::vector< std::vector< double > > ROOT::Fit::BinData::fBinEdge
private

Definition at line 631 of file BinData.h.

◆ fCoordErrors

std::vector< std::vector< double > > ROOT::Fit::BinData::fCoordErrors
private

Definition at line 615 of file BinData.h.

◆ fCoordErrorsPtr

std::vector< const double* > ROOT::Fit::BinData::fCoordErrorsPtr
private

Definition at line 616 of file BinData.h.

◆ fData

std::vector< double > ROOT::Fit::BinData::fData
private

Stores the data values the same way as the coordinates.

Definition at line 612 of file BinData.h.

◆ fDataError

std::vector< double > ROOT::Fit::BinData::fDataError
private

Definition at line 620 of file BinData.h.

◆ fDataErrorHigh

std::vector< double > ROOT::Fit::BinData::fDataErrorHigh
private

Definition at line 621 of file BinData.h.

◆ fDataErrorHighPtr

const double* ROOT::Fit::BinData::fDataErrorHighPtr
private

Definition at line 624 of file BinData.h.

◆ fDataErrorLow

std::vector< double > ROOT::Fit::BinData::fDataErrorLow
private

Definition at line 622 of file BinData.h.

◆ fDataErrorLowPtr

const double* ROOT::Fit::BinData::fDataErrorLowPtr
private

Definition at line 625 of file BinData.h.

◆ fDataErrorPtr

const double* ROOT::Fit::BinData::fDataErrorPtr
private

Definition at line 623 of file BinData.h.

◆ fDataPtr

const double* ROOT::Fit::BinData::fDataPtr
private

Definition at line 613 of file BinData.h.

◆ fErrorType

ErrorType ROOT::Fit::BinData::fErrorType
private

Definition at line 602 of file BinData.h.

◆ fIsWeighted

bool ROOT::Fit::BinData::fIsWeighted = false
private

flag to indicate weighted data

Definition at line 603 of file BinData.h.

◆ fpTmpBinEdgeVector

double* ROOT::Fit::BinData::fpTmpBinEdgeVector
private

not threadsafe stuff!

Definition at line 634 of file BinData.h.

◆ fpTmpCoordErrorVector

double* ROOT::Fit::BinData::fpTmpCoordErrorVector
private

not threadsafe stuff!

Definition at line 629 of file BinData.h.

◆ fRefVolume

double ROOT::Fit::BinData::fRefVolume
private

reference bin volume - used to normalize the bins in case of variable bins data

Definition at line 604 of file BinData.h.

◆ fSumContent

double ROOT::Fit::BinData::fSumContent = 0
private

total sum of the bin data content

Definition at line 605 of file BinData.h.

◆ fSumError2

double ROOT::Fit::BinData::fSumError2 = 0
private

total sum square of the errors

Definition at line 606 of file BinData.h.

Libraries for ROOT::Fit::BinData:

The documentation for this class was generated from the following files: