17 BinnedDataSet(
const std::vector<Observable> &vars, std::string n =
"");
18 BinnedDataSet(
const std::set<Observable> &vars, std::string n =
"");
19 BinnedDataSet(std::initializer_list<Observable> vars, std::string n =
"");
49 std::vector<size_t> convertValuesToBins(
const std::vector<fptype> &vals)
const;
50 size_t localToGlobal(
const std::vector<size_t> &locals)
const;
51 std::vector<size_t> globalToLocal(
size_t global)
const;
56 std::vector<size_t> binsizes;
57 std::vector<fptype> binvalues;
58 std::vector<fptype> binerrors;
fptype getBinContent(size_t bin) const
Get the content of a bin.
std::vector< size_t > getDiminsions() const
Get the size of each diminsion.
fptype getBinSize(size_t ivar) const
Get the size of a bin.
Special class for observables. Used in DataSets.
void setBinContent(unsigned int bin, fptype value)
BinnedDataSet(const Observable &var, std::string n="")
fptype getBinError(size_t bin) const
fptype getNumWeightedEvents() const
This includes weights.
fptype getBinCenter(size_t ivar, size_t bin) const
void addWeightedEvent(double weight) override
size_t getBinNumber() const
fptype getBinVolume(size_t bin) const
size_t getNumBins() const
virtual void addEvent()=0
void setBinError(unsigned int bin, fptype value)
~BinnedDataSet() override=default