Commmon statistics that can be derived from two arrays of floats. More...

#include <BinaryStatistic.h>

Inheritance diagram for BinaryStatistic:
BinaryStatistics::GaussianMixtureProbabilityDensity BinaryStatistics::GeneralizedChiSquared

Public Member Functions

 BinaryStatistic (const std::string &name, const std::string &description)
 Construct with a name and description.
virtual double get (const std::vector< double > &data1, const std::vector< double > &data2)=0
 Derived types define the value returned.
virtual BinaryStatisticclone () const =0
 Derived types must also define clone method.
void set_file (FILE *f)
 Set the file to which auxiliary data will be printed.

Static Public Member Functions

static BinaryStatisticfactory (const std::string &name)
 Create a new instance of BinaryStatistic based on name.
static const std::vector< BinaryStatistic * > & children ()
 Returns a list of available BinaryStatistic children.

Protected Attributes

FILE * fptr
 The file to which auxiliary data will be printed.

Detailed Description

Commmon statistics that can be derived from two arrays of floats.

Member Function Documentation

◆ clone()

virtual BinaryStatistic * BinaryStatistic::clone ( ) const
pure virtual

Derived types must also define clone method.

Implemented in BinaryStatistics::GaussianMixtureProbabilityDensity, and BinaryStatistics::GeneralizedChiSquared.

References BinaryStatistic().

◆ get()

virtual double BinaryStatistic::get ( const std::vector< double > & data1,
const std::vector< double > & data2 )
pure virtual

Derived types define the value returned.

data1 and data2 must have been normalized such that a robust estimate of their variance is equal to unity

Implemented in BinaryStatistics::GaussianMixtureProbabilityDensity, and BinaryStatistics::GeneralizedChiSquared.


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

Generated using doxygen 1.14.0