Public Member Functions | Static Public Member Functions | List of all members
ProbabilisticSceneRecognition::MathHelper Class Reference

#include <MathHelper.h>

Public Member Functions

 MathHelper ()
 
 ~MathHelper ()
 

Static Public Member Functions

static void calcHistogram (double lower, double upper, unsigned int buckets, std::vector< double > in, std::vector< std::pair< double, double >> &out)
 
static void drawNormal (const Eigen::VectorXd &mean, const Eigen::MatrixXd &cov, unsigned int amount, std::vector< Eigen::VectorXd > &samples)
 

Detailed Description

Helper class for mathematical calculations.

Definition at line 40 of file MathHelper.h.

Constructor & Destructor Documentation

ProbabilisticSceneRecognition::MathHelper::MathHelper ( )

Constructor.

Definition at line 23 of file MathHelper.cpp.

ProbabilisticSceneRecognition::MathHelper::~MathHelper ( )

Destructor.

Definition at line 27 of file MathHelper.cpp.

Member Function Documentation

void ProbabilisticSceneRecognition::MathHelper::calcHistogram ( double  lower,
double  upper,
unsigned int  buckets,
std::vector< double >  in,
std::vector< std::pair< double, double >> &  out 
)
static

Calculate Histogram

Parameters
lowerLower bound of the values
upperUpper bound of the values
bucketsNumber of buckets
inInput samples
outOutput vector

Definition at line 45 of file MathHelper.cpp.

void ProbabilisticSceneRecognition::MathHelper::drawNormal ( const Eigen::VectorXd &  mean,
const Eigen::MatrixXd &  cov,
unsigned int  amount,
std::vector< Eigen::VectorXd > &  samples 
)
static

Draws a sample from a multivariate normal distribution represented by a mean and a covariance matrix

Parameters
meanThe mean of the distribution
covThe diagonal covariance matrix of the distribution
amountThe amount of samples to draw
sampleThe Eigen vector to draw the sample into

Definition at line 31 of file MathHelper.cpp.


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


asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 04:00:09