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 pushed in (one by one) using the Add method. @ingroup FitData
virtual | ~UnBinData() |
void | Add(double x) |
void | Add(double* x) |
const double* | Coords(unsigned int ipoint) const |
unsigned int | DataSize() const |
void | Initialize(unsigned int maxpoints, unsigned int dim = 1) |
unsigned int | NDim() const |
unsigned int | NPoints() const |
unsigned int | PointSize() const |
void | Resize(unsigned int npoints) |
unsigned int | Size() const |
ROOT::Fit::UnBinData | UnBinData(unsigned int maxpoints = 0, unsigned int dim = 1) |
ROOT::Fit::UnBinData | UnBinData(unsigned int n, const double* dataX) |
ROOT::Fit::UnBinData | UnBinData(const ROOT::Fit::DataOptions& opt, unsigned int maxpoints = 0, unsigned int dim = 1) |
ROOT::Fit::UnBinData | UnBinData(unsigned int n, const double* dataX, const double* dataY) |
ROOT::Fit::UnBinData | UnBinData(const ROOT::Fit::DataOptions& opt, const ROOT::Fit::DataRange& range, unsigned int maxpoints = 0, unsigned int dim = 1) |
ROOT::Fit::UnBinData | UnBinData(unsigned int n, const double* dataX, const double* dataY, const double* dataZ) |
void | SetNPoints(unsigned int n) |
constructor from dimension of point and max number of points (to pre-allocate vector)
constructor from option and default range
constructor from options and range
constructor for 2D external data
constructor for 3D external data
preallocate a data set given size and dimension
return fit point size (for unbin data is equivalent to coordinate dimension)