Base class of all data statistics. More...
#include <DataStatistics.h>
Public Member Functions | |
virtual void | Evaluate (Array< double > &, int, const double *, const bool *=nullptr) const =0 |
Evaluate statistic for given data. | |
mirtkOnOffMacro (Hidden) | |
Hide/Show statistic in output report. | |
virtual void | Print (ostream &os=cout, int digits=5, const char *prefix="") const |
Print statistic to output stream as "<desc> = <value>". | |
virtual void | PrintHeader (ostream &os=cout, const char *delimiter=",") const |
Print column names of statistic values to output stream. | |
virtual void | PrintValues (ostream &os=cout, int digits=5, const char *delimiter=",") const |
Print delimited statistic values to output stream. | |
virtual void | Process (int n, double *data, bool *mask=nullptr) |
Process given data. | |
virtual const double & | Value () const |
virtual | ~Statistic () |
Destructor. | |
Public Member Functions inherited from mirtk::data::Op | |
virtual | ~Op () |
Destructor. | |
Protected Member Functions | |
Statistic (int nvalues, const char *desc=nullptr, const Array< string > *names=nullptr) | |
Constructor. | |
void | Value (double v) |
Set value of statistic (first entry of _Values vector) | |
Base class of all data statistics.
Definition at line 41 of file DataStatistics.h.
|
inlinevirtual |
Get value of statistic (first entry of _Values vector)
Definition at line 92 of file DataStatistics.h.