49 std::stringstream oss;
50 oss << std::setprecision(accuracy);
51 const std::vector<double> vals =
getVals();
52 for (
int i = 0; i < (int)vals.size(); i++) {
56 oss << vals[i] <<
":" <<
getProbs()[i];
58 return "points(" + oss.str() +
")";
double getMax() const
Returns the maximum value of this distribution.
virtual ~Distribution_Points()
Destructor.
std::string toStr(std::streamsize accuracy) const
Returns the string representation of this distribution.
Distribution_Points(const std::string &id)
Constructor.
const std::vector< double > & getVals() const
Returns the members of the distribution.
const std::vector< double > & getProbs() const
Returns the probabilities assigned to the members of the distribution.