BinaryStatistics::GeneralizedChiSquared Class Reference

Computes the generalized squared interpoint distance between vectors. More...

#include <GeneralizedChiSquared.h>

Inheritance diagram for BinaryStatistics::GeneralizedChiSquared:
BinaryStatistic

Public Member Functions

double get (const std::vector< double > &, const std::vector< double > &)
 Derived types define the value returned. More...
 
const std::vector< double > & get_residual () const
 Return the residual.
 
GeneralizedChiSquaredclone () const
 Derived types must also define clone method.
 
unsigned get_neigen () const
 Return the number of eigenvalue/vector pairs.
 
- Public Member Functions inherited from BinaryStatistic
 BinaryStatistic (const std::string &name, const std::string &description)
 Construct with a name and description.
 
void set_file (FILE *f)
 Set the file to which auxiliary data will be printed.
 

Public Attributes

ndArray< 2, double > eigenvectors
 
ndArray< 1, double > eigenvalues
 

Additional Inherited Members

- Static Public Member Functions inherited from BinaryStatistic
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 inherited from BinaryStatistic
FILE * fptr
 The file to which auxiliary data will be printed.
 

Detailed Description

Computes the generalized squared interpoint distance between vectors.

If one of the vectors is the mean of the distribution, than this distance is equivalent to the square of the Mahalanobis distance.

Member Function Documentation

◆ get()

double GeneralizedChiSquared::get ( const std::vector< double > &  data1,
const std::vector< double > &  data2 
)
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

Implements BinaryStatistic.

References BinaryStatistic::fptr, and Estimate< class, class >::val.


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

Generated using doxygen 1.8.17