Gaussian Class Reference

#include <MemoryX/libraries/helpers/EarlyVisionHelpers/Gaussian.h>

Public Types

using covariance_type = Eigen::MatrixXd
 
using samples_type = Eigen::MatrixXd
 
using value_type = Eigen::VectorXd
 

Public Member Functions

value_type drawSample ()
 
value_type drawSampleDiagonalCovariance ()
 
double evaluate (const value_type &point)
 
 Gaussian ()
 
 Gaussian (const Gaussian &prototype)
 
 Gaussian (const value_type &mean, const covariance_type &covariance)
 
 Gaussian (int dimension)
 
void generateFromSamples (const samples_type &samples)
 
const covariance_type & getCovariance () const
 
int getDimensions () const
 
const value_type & getMean () const
 
double mahalanobis (const value_type &point)
 
Gaussian & operator= (const Gaussian &prototype)
 
void set (const Gaussian &prototype)
 
void set (const value_type &mean, const covariance_type &cov)
 
void setCovariance (const covariance_type &cov)
 
void setMean (const value_type &mean)
 

Friends

std::ostream & operator<< (std::ostream &stream, const Gaussian &rhs)
 

Member Typedef Documentation

◆ covariance_type

using covariance_type = Eigen::MatrixXd

◆ samples_type

using samples_type = Eigen::MatrixXd

◆ value_type

using value_type = Eigen::VectorXd

Constructor & Destructor Documentation

◆ Gaussian() [1/4]

Gaussian ( )

◆ Gaussian() [2/4]

Gaussian ( int dimension)

◆ Gaussian() [3/4]

Gaussian ( const Gaussian & prototype)

◆ Gaussian() [4/4]

Gaussian ( const value_type & mean,
const covariance_type & covariance )

Member Function Documentation

◆ drawSample()

Gaussian::value_type drawSample ( )

◆ drawSampleDiagonalCovariance()

Gaussian::value_type drawSampleDiagonalCovariance ( )

◆ evaluate()

double evaluate ( const value_type & point)

◆ generateFromSamples()

void generateFromSamples ( const samples_type & samples)

◆ getCovariance()

const covariance_type & getCovariance ( ) const
inline

◆ getDimensions()

int getDimensions ( ) const
inline

◆ getMean()

const value_type & getMean ( ) const
inline

◆ mahalanobis()

double mahalanobis ( const value_type & point)

◆ operator=()

Gaussian & operator= ( const Gaussian & prototype)
inline

◆ set() [1/2]

void set ( const Gaussian & prototype)

◆ set() [2/2]

void set ( const value_type & mean,
const covariance_type & cov )

◆ setCovariance()

void setCovariance ( const covariance_type & cov)

◆ setMean()

void setMean ( const value_type & mean)

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & stream,
const Gaussian & rhs )
friend

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