#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) |
Helper class for mathematical calculations.
Definition at line 40 of file MathHelper.h.
ProbabilisticSceneRecognition::MathHelper::MathHelper | ( | ) |
Constructor.
Definition at line 23 of file MathHelper.cpp.
ProbabilisticSceneRecognition::MathHelper::~MathHelper | ( | ) |
Destructor.
Definition at line 27 of file MathHelper.cpp.
|
static |
Calculate Histogram
lower | Lower bound of the values |
upper | Upper bound of the values |
buckets | Number of buckets |
in | Input samples |
out | Output vector |
Definition at line 45 of file MathHelper.cpp.
|
static |
Draws a sample from a multivariate normal distribution represented by a mean and a covariance matrix
mean | The mean of the distribution |
cov | The diagonal covariance matrix of the distribution |
amount | The amount of samples to draw |
sample | The Eigen vector to draw the sample into |
Definition at line 31 of file MathHelper.cpp.