mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
hist: make details parameter boolean
This commit is contained in:
parent
69639168c2
commit
f3937213d7
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue