#ifndef ROOT_Fit_SparseData
#define ROOT_Fit_SparseData
#include <vector>
#ifndef ROOT_Fit_DataVector
#include "Fit/DataVector.h"
#include "Fit/BinData.h"
#endif
namespace ROOT {
namespace Fit {
class ProxyListBox;
class SparseData : public FitData {
public:
SparseData(std::vector<double>& min, std::vector<double>& max);
SparseData(const unsigned int dim, double min[], double max[]);
~SparseData();
unsigned int NPoints() const;
unsigned int NDim() const;
void Add(std::vector<double>& min, std::vector<double>& max,
const double content, const double error = 1.0);
void GetPoint(const unsigned int i,
std::vector<double>& min, std::vector<double>&max,
double& content, double& error);
void PrintList() const;
void GetBinData(BinData&) const;
void GetBinDataIntegral(BinData&) const;
void GetBinDataNoZeros(BinData&) const;
private :
ProxyListBox *fList;
};
}
}
#endif /* ROOT_Fit_SparseData */