Logo ROOT   6.10/09
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
ROOT::Fit::SparseData Class Reference

Definition at line 26 of file SparseData.h.

Public Member Functions

 SparseData (std::vector< double > &min, std::vector< double > &max)
 
 SparseData (const unsigned int dim, double min[], double max[])
 
 ~SparseData ()
 
void Add (std::vector< double > &min, std::vector< double > &max, const double content, const double error=1.0)
 
void GetBinData (BinData &) const
 
void GetBinDataIntegral (BinData &) const
 
void GetBinDataNoZeros (BinData &) const
 
void GetPoint (const unsigned int i, std::vector< double > &min, std::vector< double > &max, double &content, double &error)
 
unsigned int NDim () const
 
unsigned int NPoints () const
 
void PrintList () const
 
- Public Member Functions inherited from ROOT::Fit::FitData
 FitData (unsigned int maxpoints=0, unsigned int dim=1)
 construct with default option and data range More...
 
 FitData (const DataOptions &opt, unsigned int maxpoints=0, unsigned int dim=1)
 construct passing options and default data range More...
 
 FitData (const DataRange &range, unsigned int maxpoints=0, unsigned int dim=1)
 construct passing range and default options More...
 
 FitData (const DataOptions &opt, const DataRange &range, unsigned int maxpoints=0, unsigned int dim=1)
 construct passing options and data range More...
 
 FitData (unsigned int n, const double *dataX)
 constructor from external data for 1D data More...
 
 FitData (unsigned int n, const double *dataX, const double *dataY)
 constructor from external data for 2D data More...
 
 FitData (unsigned int n, const double *dataX, const double *dataY, const double *dataZ)
 constructor from external data for 3D data More...
 
 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 More...
 
 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 More...
 
 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 More...
 
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 apssed dim refers just to the coordinate size More...
 
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 More...
 
 FitData (const FitData &rhs)
 
virtual ~FitData ()
 dummy virtual destructor More...
 
void Add (double x)
 add one dim data with only coordinate and values More...
 
void Add (const double *x)
 add multi-dim coordinate data with only value More...
 
void Append (unsigned int newPoints, unsigned int dim=1)
 
const double * Coords (unsigned int ipoint) const
 return a pointer to the coordinates data for the given fit point More...
 
const double * GetCoordComponent (unsigned int ipoint, unsigned int icoord) const
 returns a single coordinate component of a point. More...
 
const std::vector< const double *> & GetCoordDataPtrs () const
 direct access to coord data ptrs More...
 
unsigned int NDim () const
 return coordinate data dimension More...
 
unsigned int NPoints () const
 return number of fit points More...
 
FitDataoperator= (const FitData &rhs)
 
const DataOptionsOpt () const
 access to options More...
 
DataOptionsOpt ()
 
const DataRangeRange () const
 access to range More...
 
unsigned int Size () const
 return number of fit points More...
 

Private Attributes

ProxyListBox * fList
 

Additional Inherited Members

- 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 ). More...
 
template<class Iterator >
void InitFromRange (Iterator dataItr)
 
void UnWrap ()
 
- Protected Attributes inherited from ROOT::Fit::FitData
unsigned int fDim
 
unsigned int fMaxPoints
 
unsigned int fNPoints
 
bool fWrapped
 

#include <Fit/SparseData.h>

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

Constructor & Destructor Documentation

◆ SparseData() [1/2]

ROOT::Fit::SparseData::SparseData ( std::vector< double > &  min,
std::vector< double > &  max 
)

Definition at line 194 of file SparseData.cxx.

◆ SparseData() [2/2]

ROOT::Fit::SparseData::SparseData ( const unsigned int  dim,
double  min[],
double  max[] 
)

Definition at line 204 of file SparseData.cxx.

◆ ~SparseData()

ROOT::Fit::SparseData::~SparseData ( )

Definition at line 216 of file SparseData.cxx.

Member Function Documentation

◆ Add()

void ROOT::Fit::SparseData::Add ( std::vector< double > &  min,
std::vector< double > &  max,
const double  content,
const double  error = 1.0 
)

Definition at line 231 of file SparseData.cxx.

◆ GetBinData()

void ROOT::Fit::SparseData::GetBinData ( BinData bd) const

Definition at line 298 of file SparseData.cxx.

◆ GetBinDataIntegral()

void ROOT::Fit::SparseData::GetBinDataIntegral ( BinData bd) const

Definition at line 320 of file SparseData.cxx.

◆ GetBinDataNoZeros()

void ROOT::Fit::SparseData::GetBinDataNoZeros ( BinData bd) const

Definition at line 338 of file SparseData.cxx.

◆ GetPoint()

void ROOT::Fit::SparseData::GetPoint ( const unsigned int  i,
std::vector< double > &  min,
std::vector< double > &  max,
double &  content,
double &  error 
)

Definition at line 268 of file SparseData.cxx.

◆ NDim()

unsigned int ROOT::Fit::SparseData::NDim ( ) const

Definition at line 225 of file SparseData.cxx.

◆ NPoints()

unsigned int ROOT::Fit::SparseData::NPoints ( ) const

Definition at line 219 of file SparseData.cxx.

◆ PrintList()

void ROOT::Fit::SparseData::PrintList ( ) const

Definition at line 291 of file SparseData.cxx.

Member Data Documentation

◆ fList

ProxyListBox* ROOT::Fit::SparseData::fList
private

Definition at line 61 of file SparseData.h.


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