5 #include <initializer_list> 19 DataSet(
const std::vector<Observable> &vars, std::string n =
"");
20 DataSet(
const std::set<Observable> &vars, std::string n =
"");
21 DataSet(std::initializer_list<Observable> vars, std::string n =
"");
30 template <
typename... Args>
32 std::vector<fptype> values{value,
static_cast<fptype>(args)...};
38 for(
size_t i = 0; i < values.size(); i++)
49 std::string
getName()
const {
return name; }
Thrown when a general error is encountered.
size_t getNumEvents() const
void addEvent(fptype value, Args... args)
This is a helper that allows multiple values to be passed in instead of relying on the content of the...
std::vector< Observable > observables
virtual ~DataSet()=default
DataSet(const Observable &var, std::string n="")
void checkAllVars() const
Throw an error if any variables are out of range, call in addEvent.
Special class for observables. Used in DataSets.
std::string getName() const
size_t indexOfVariable(const Observable &var) const
const std::vector< Observable > & getObservables() const
std::vector< fptype > getCurrentValues() const
virtual void addWeightedEvent(fptype weight)
virtual void addEvent()=0
size_t numVariables() const