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_typegetCovariance () const
 
int getDimensions () const
 
const value_typegetMean () const
 
double mahalanobis (const value_type &point)
 
Gaussianoperator= (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)
 

Detailed Description

Definition at line 46 of file Gaussian.h.

Member Typedef Documentation

◆ covariance_type

using covariance_type = Eigen::MatrixXd

Definition at line 53 of file Gaussian.h.

◆ samples_type

using samples_type = Eigen::MatrixXd

Definition at line 54 of file Gaussian.h.

◆ value_type

using value_type = Eigen::VectorXd

Definition at line 52 of file Gaussian.h.

Constructor & Destructor Documentation

◆ Gaussian() [1/4]

Gaussian ( )

Definition at line 20 of file Gaussian.cpp.

◆ Gaussian() [2/4]

Gaussian ( int  dimension)

Definition at line 25 of file Gaussian.cpp.

+ Here is the call graph for this function:

◆ Gaussian() [3/4]

Gaussian ( const Gaussian prototype)

Definition at line 34 of file Gaussian.cpp.

◆ Gaussian() [4/4]

Gaussian ( const value_type mean,
const covariance_type covariance 
)

Definition at line 39 of file Gaussian.cpp.

Member Function Documentation

◆ drawSample()

Gaussian::value_type drawSample ( )

Definition at line 93 of file Gaussian.cpp.

+ Here is the call graph for this function:

◆ drawSampleDiagonalCovariance()

Gaussian::value_type drawSampleDiagonalCovariance ( )

Definition at line 130 of file Gaussian.cpp.

+ Here is the call graph for this function:

◆ evaluate()

double evaluate ( const value_type point)

Definition at line 55 of file Gaussian.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ generateFromSamples()

void generateFromSamples ( const samples_type samples)

Definition at line 175 of file Gaussian.cpp.

+ Here is the call graph for this function:

◆ getCovariance()

const covariance_type& getCovariance ( ) const
inline

Definition at line 77 of file Gaussian.h.

+ Here is the caller graph for this function:

◆ getDimensions()

int getDimensions ( ) const
inline

Definition at line 85 of file Gaussian.h.

+ Here is the caller graph for this function:

◆ getMean()

const value_type& getMean ( ) const
inline

Definition at line 81 of file Gaussian.h.

+ Here is the caller graph for this function:

◆ mahalanobis()

double mahalanobis ( const value_type point)

Definition at line 74 of file Gaussian.cpp.

+ Here is the call graph for this function:

◆ operator=()

Gaussian& operator= ( const Gaussian prototype)
inline

Definition at line 91 of file Gaussian.h.

◆ set() [1/2]

void set ( const Gaussian prototype)

Definition at line 211 of file Gaussian.cpp.

+ Here is the call graph for this function:

◆ set() [2/2]

void set ( const value_type mean,
const covariance_type cov 
)

Definition at line 222 of file Gaussian.cpp.

◆ setCovariance()

void setCovariance ( const covariance_type cov)

Definition at line 261 of file Gaussian.cpp.

+ Here is the caller graph for this function:

◆ setMean()

void setMean ( const value_type mean)

Definition at line 245 of file Gaussian.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 104 of file Gaussian.h.


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