Commit 9077dfba authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼

hist: make details parameter boolean

parent c631033b
......@@ -61,7 +61,7 @@ public:
double getStddev() const;
/** Print all statistical properties of distribution including a graphilcal plot of the histogram. */
void print(const int details) const;
void print(bool details) const;
/** Print ASCII style plot of histogram */
void plot() const;
......
......@@ -129,7 +129,7 @@ double Hist::getStddev() const
return sqrt(getVar());
}
void Hist::print(int details) const
void Hist::print(bool details) const
{
if (total > 0) {
Hist::cnt_t missed = total - higher - lower;
......@@ -142,7 +142,7 @@ void Hist::print(int details) const
info("Variance: %g", getVar());
info("Stddev: %g", getStddev());
if (details > 0 && total - higher - lower > 0) {
if (details && total - higher - lower > 0) {
char *buf =dump();
info("Matlab: %s", buf);
free(buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment