Public Member Functions | Protected Member Functions | List of all members
mirtk::data::Statistic Class Referenceabstract

Base class of all data statistics. More...

#include <DataStatistics.h>

Inheritance diagram for mirtk::data::Statistic:
Inheritance graph
Collaboration diagram for mirtk::data::Statistic:
Collaboration graph

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)
 

Detailed Description

Base class of all data statistics.

Definition at line 41 of file DataStatistics.h.

Member Function Documentation

§ Value()

virtual const double& mirtk::data::Statistic::Value ( ) const
inlinevirtual

Get value of statistic (first entry of _Values vector)

Returns
Reference to first element of _Values vector such that the address of the this element can be passed on to subsequent data operations.

Definition at line 92 of file DataStatistics.h.


The documentation for this class was generated from the following file: