Class describing the unbinned data sets (just x coordinates values) of any dimensions There is the option to construct UnBindata 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 using external 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. @ingroup FitData
virtual | ~UnBinData() |
void | Add(double x) |
void | Add(const double* x) |
void | Add(double x, double y) |
void | Add(const double* x, double w) |
void | Add(double x, double y, double z) |
const double* | Coords(unsigned int ipoint) const |
unsigned int | DataSize() const |
ROOT::Fit::FitData | ROOT::Fit::FitData::FitData() |
ROOT::Fit::FitData | ROOT::Fit::FitData::FitData(const ROOT::Fit::DataOptions& opt) |
ROOT::Fit::FitData | ROOT::Fit::FitData::FitData(const ROOT::Fit::DataRange& range) |
ROOT::Fit::FitData | ROOT::Fit::FitData::FitData(const ROOT::Fit::FitData&) |
ROOT::Fit::FitData | ROOT::Fit::FitData::FitData(const ROOT::Fit::DataOptions& opt, const ROOT::Fit::DataRange& range) |
void | Initialize(unsigned int maxpoints, unsigned int dim = 1, bool isWeighted = false) |
bool | IsWeighted() const |
static unsigned int | ROOT::Fit::FitData::MaxSize() |
unsigned int | NDim() const |
unsigned int | NPoints() const |
const ROOT::Fit::DataOptions& | ROOT::Fit::FitData::Opt() const |
ROOT::Fit::DataOptions& | ROOT::Fit::FitData::Opt() |
unsigned int | PointSize() const |
const ROOT::Fit::DataRange& | ROOT::Fit::FitData::Range() const |
void | Resize(unsigned int npoints) |
unsigned int | Size() const |
ROOT::Fit::UnBinData | UnBinData(unsigned int n, const double* dataX) |
ROOT::Fit::UnBinData | UnBinData(unsigned int maxpoints = 0, unsigned int dim = 1, bool isWeighted = false) |
ROOT::Fit::UnBinData | UnBinData(unsigned int maxpoints, const double* dataX, const ROOT::Fit::DataRange& range) |
ROOT::Fit::UnBinData | UnBinData(const ROOT::Fit::DataRange& range, unsigned int maxpoints = 0, unsigned int dim = 1, bool isWeighted = false) |
ROOT::Fit::UnBinData | UnBinData(unsigned int n, const double* dataX, const double* dataY, bool isWeighted = false) |
ROOT::Fit::UnBinData | UnBinData(const ROOT::Fit::DataOptions& opt, const ROOT::Fit::DataRange& range, unsigned int maxpoints = 0, unsigned int dim = 1, bool isWeighted = false) |
ROOT::Fit::UnBinData | UnBinData(unsigned int n, const double* dataX, const double* dataY, const double* dataZ, bool isWeighted = false) |
ROOT::Fit::UnBinData | UnBinData(unsigned int maxpoints, const double* dataX, const double* dataY, const ROOT::Fit::DataRange& range, bool isWeighted = false) |
ROOT::Fit::UnBinData | UnBinData(unsigned int maxpoints, const double* dataX, const double* dataY, const double* dataZ, const ROOT::Fit::DataRange& range, bool isWeighted = false) |
double | Weight(unsigned int ipoint) const |
void | SetNPoints(unsigned int n) |
ROOT::Fit::DataVector* | fDataVector | pointer to internal data vector (null for external data) |
ROOT::Fit::DataWrapper* | fDataWrapper | pointer to structure wrapping external data (null when data are copied in) |
unsigned int | fDim | coordinate data dimension |
unsigned int | fNPoints | numer of fit points |
unsigned int | fPointSize | poit size dimension (coordinate + weight) |
constructor from dimension of point and max number of points (to pre-allocate vector)
constructor from range and default option
constructor from options and range
constructor for 1D external data (data are not copied inside)
constructor for 2D external data (data are not copied inside) or 1D data with a weight (if isWeighted = true)
constructor for 3D external data (data are not copied inside) or 2D data with a weight (if isWeighted = true)
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
constructor for 1D data and a range (data are copied inside according to the given range)
constructor for 2D data and a range (data are copied inside according to the given range) or 1 1D data set + weight. If is weighted dataY is the pointer to the list of the weights
constructor for 3D data and a range (data are copied inside according to the given range) or a 2D data set + weights. If is weighted dataZ is the pointer to the list of the weights
preallocate a data set given size and dimension of the coordinates if a vector already exists with correct dimension (point size) extend the existing one to a total size of maxpoints (equivalent to a Resize)
add 2-dim coordinate data can also be used to add 1-dim data with a weight
add 3-dim coordinate data can also be used to add 2-dim data with a weight
return point size. For unweighted data is equivalent to coordinate dimension, for weighted data is NDim()+1