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