|
Namespaces | |
| namespace | mrpt::math::detail |
Functions | |
| double BASE_IMPEXP | mrpt::math::normalPDF (double x, double mu, double std) |
| Evaluates the univariate normal (Gaussian) distribution at a given point "x". | |
| template<class VECTORLIKE1 , class VECTORLIKE2 , class MATRIXLIKE > | |
| MATRIXLIKE::value_type | mrpt::math::normalPDF (const VECTORLIKE1 &x, const VECTORLIKE2 &mu, const MATRIXLIKE &cov, const bool scaled_pdf=false) |
| Evaluates the multivariate normal (Gaussian) distribution at a given point "x". | |
| template<typename VECTORLIKE , typename MATRIXLIKE > | |
| MATRIXLIKE::value_type | mrpt::math::normalPDF (const VECTORLIKE &d, const MATRIXLIKE &cov) |
| Evaluates the multivariate normal (Gaussian) distribution at a given point given its distance vector "d" from the Gaussian mean. | |
| template<typename VECTORLIKE1 , typename MATRIXLIKE1 , typename VECTORLIKE2 , typename MATRIXLIKE2 > | |
| double | mrpt::math::KLD_Gaussians (const VECTORLIKE1 &mu0, const MATRIXLIKE1 &cov0, const VECTORLIKE2 &mu1, const MATRIXLIKE2 &cov1) |
| Kullback-Leibler divergence (KLD) between two independent multivariate Gaussians. | |
| double BASE_IMPEXP | mrpt::math::erfc (double x) |
| The complementary error function of a Normal distribution. | |
| double BASE_IMPEXP | mrpt::math::erf (double x) |
| The error function of a Normal distribution. | |
| double BASE_IMPEXP | mrpt::math::normalQuantile (double p) |
| Evaluates the Gaussian distribution quantile for the probability value p=[0,1]. | |
| double BASE_IMPEXP | mrpt::math::normalCDF (double p) |
| Evaluates the Gaussian cumulative density function. | |
| double BASE_IMPEXP | mrpt::math::chi2inv (double P, unsigned int dim=1) |
| The "quantile" of the Chi-Square distribution, for dimension "dim" and probability 0<P<1 (the inverse of chi2CDF) An aproximation from the Wilson-Hilferty transformation is used. | |
| template<class T > | |
| double | mrpt::math::noncentralChi2CDF (unsigned int degreesOfFreedom, T noncentrality, T arg) |
| double | mrpt::math::chi2CDF (unsigned int degreesOfFreedom, double arg) |
| double | mrpt::math::chi2PDF (unsigned int degreesOfFreedom, double arg, double accuracy=1e-7) |
| template<typename CONTAINER > | |
| void | mrpt::math::condidenceIntervals (const CONTAINER &data, typename CONTAINER::value_type &out_mean, typename CONTAINER::value_type &out_lower_conf_interval, typename CONTAINER::value_type &out_upper_conf_interval, const double confidenceInterval=0.1, const size_t histogramNumBins=1000) |
| Return the mean and the 10%-90% confidence points (or with any other confidence value) of a set of samples by building the cummulative CDF of all the elements of the container. | |
| template<class VECTOR_OF_VECTORS , class MATRIXLIKE , class VECTORLIKE , class VECTORLIKE2 , class VECTORLIKE3 > | |
| void | mrpt::math::covariancesAndMeanWeighted (const VECTOR_OF_VECTORS &elements, MATRIXLIKE &covariances, VECTORLIKE &means, const VECTORLIKE2 *weights_mean, const VECTORLIKE3 *weights_cov, const bool *elem_do_wrap2pi=NULL) |
| Computes covariances and mean of any vector of containers, given optional weights for the different samples. | |
| template<class VECTOR_OF_VECTORS , class MATRIXLIKE , class VECTORLIKE > | |
| void | mrpt::math::covariancesAndMean (const VECTOR_OF_VECTORS &elements, MATRIXLIKE &covariances, VECTORLIKE &means, const bool *elem_do_wrap2pi=NULL) |
| Computes covariances and mean of any vector of containers. | |
| double BASE_IMPEXP | mrpt::math::averageLogLikelihood (const vector_double &logLikelihoods) |
| A numerically-stable method to compute average likelihood values with strongly different ranges (unweighted likelihoods: compute the arithmetic mean). | |
| double BASE_IMPEXP | mrpt::math::averageWrap2Pi (const vector_double &angles) |
Computes the average of a sequence of angles in radians taking into account the correct wrapping in the range , for example, the mean of (2,-2) is , not 0. | |
| double BASE_IMPEXP | mrpt::math::averageLogLikelihood (const vector_double &logWeights, const vector_double &logLikelihoods) |
| A numerically-stable method to average likelihood values with strongly different ranges (weighted likelihoods). | |
| std::string BASE_IMPEXP | mrpt::math::MATLAB_plotCovariance2D (const CMatrixFloat &cov22, const vector_float &mean, const float &stdCount, const std::string &style=std::string("b"), const size_t &nEllipsePoints=30) |
| Generates a string with the MATLAB commands required to plot an confidence interval (ellipse) for a 2D Gaussian ('float' version). | |
Probability density distributions (pdf) distance metrics | |
| template<class VECTORLIKE1 , class VECTORLIKE2 , class MAT > | |
| VECTORLIKE1::value_type | mrpt::math::mahalanobisDistance2 (const VECTORLIKE1 &X, const VECTORLIKE2 &MU, const MAT &COV) |
| Computes the squared mahalanobis distance of a vector X given the mean MU and the covariance *inverse* COV_inv
| |
| template<class VECTORLIKE1 , class VECTORLIKE2 , class MAT > | |
| VECTORLIKE1::value_type | mrpt::math::mahalanobisDistance (const VECTORLIKE1 &X, const VECTORLIKE2 &MU, const MAT &COV) |
| Computes the mahalanobis distance of a vector X given the mean MU and the covariance *inverse* COV_inv
| |
| template<class VECTORLIKE , class MAT1 , class MAT2 , class MAT3 > | |
| VECTORLIKE::value_type | mrpt::math::mahalanobisDistance2 (const VECTORLIKE &mean_diffs, const MAT1 &COV1, const MAT2 &COV2, const MAT3 &CROSS_COV12) |
| Computes the squared mahalanobis distance between two *non-independent* Gaussians, given the two covariance matrices and the vector with the difference of their means. | |
| template<class VECTORLIKE , class MAT1 , class MAT2 , class MAT3 > | |
| VECTORLIKE::value_type | mrpt::math::mahalanobisDistance (const VECTORLIKE &mean_diffs, const MAT1 &COV1, const MAT2 &COV2, const MAT3 &CROSS_COV12) |
| Computes the mahalanobis distance between two *non-independent* Gaussians (or independent if CROSS_COV12=NULL), given the two covariance matrices and the vector with the difference of their means. | |
| template<class VECTORLIKE , class MATRIXLIKE > | |
| MATRIXLIKE::value_type | mrpt::math::mahalanobisDistance2 (const VECTORLIKE &delta_mu, const MATRIXLIKE &cov) |
| Computes the squared mahalanobis distance between a point and a Gaussian, given the covariance matrix and the vector with the difference between the mean and the point. | |
| template<class VECTORLIKE , class MATRIXLIKE > | |
| MATRIXLIKE::value_type | mrpt::math::mahalanobisDistance (const VECTORLIKE &delta_mu, const MATRIXLIKE &cov) |
| Computes the mahalanobis distance between a point and a Gaussian, given the covariance matrix and the vector with the difference between the mean and the point. | |
| template<typename T > | |
| T | mrpt::math::productIntegralTwoGaussians (const std::vector< T > &mean_diffs, const CMatrixTemplateNumeric< T > &COV1, const CMatrixTemplateNumeric< T > &COV2) |
| Computes the integral of the product of two Gaussians, with means separated by "mean_diffs" and covariances "COV1" and "COV2". | |
| template<typename T , size_t DIM> | |
| T | mrpt::math::productIntegralTwoGaussians (const std::vector< T > &mean_diffs, const CMatrixFixedNumeric< T, DIM, DIM > &COV1, const CMatrixFixedNumeric< T, DIM, DIM > &COV2) |
| Computes the integral of the product of two Gaussians, with means separated by "mean_diffs" and covariances "COV1" and "COV2". | |
| template<typename T , class VECLIKE , class MATLIKE1 , class MATLIKE2 > | |
| void | mrpt::math::productIntegralAndMahalanobisTwoGaussians (const VECLIKE &mean_diffs, const MATLIKE1 &COV1, const MATLIKE2 &COV2, T &maha2_out, T &intprod_out, const MATLIKE1 *CROSS_COV12=NULL) |
| Computes both, the integral of the product of two Gaussians and their square Mahalanobis distance. | |
| template<typename T , class VECLIKE , class MATRIXLIKE > | |
| void | mrpt::math::mahalanobisDistance2AndLogPDF (const VECLIKE &diff_mean, const MATRIXLIKE &cov, T &maha2_out, T &log_pdf_out) |
| Computes both, the logarithm of the PDF and the square Mahalanobis distance between a point (given by its difference wrt the mean) and a Gaussian. | |
| template<typename T , class VECLIKE , class MATRIXLIKE > | |
| void | mrpt::math::mahalanobisDistance2AndPDF (const VECLIKE &diff_mean, const MATRIXLIKE &cov, T &maha2_out, T &pdf_out) |
| Computes both, the PDF and the square Mahalanobis distance between a point (given by its difference wrt the mean) and a Gaussian. | |
| double BASE_IMPEXP mrpt::math::averageLogLikelihood | ( | const vector_double & | logLikelihoods | ) |
A numerically-stable method to compute average likelihood values with strongly different ranges (unweighted likelihoods: compute the arithmetic mean).
This method implements this equation:
See also the tutorial page.
Referenced by mrpt::slam::PF_implementation::PF_SLAM_particlesEvaluator_AuxPFOptimal(), and mrpt::slam::PF_implementation::PF_SLAM_particlesEvaluator_AuxPFStandard().
| double BASE_IMPEXP mrpt::math::averageLogLikelihood | ( | const vector_double & | logWeights, |
| const vector_double & | logLikelihoods | ||
| ) |
A numerically-stable method to average likelihood values with strongly different ranges (weighted likelihoods).
This method implements this equation:
See also the tutorial page.
| double BASE_IMPEXP mrpt::math::averageWrap2Pi | ( | const vector_double & | angles | ) |
Computes the average of a sequence of angles in radians taking into account the correct wrapping in the range
, for example, the mean of (2,-2) is
, not 0.
| double mrpt::math::chi2CDF | ( | unsigned int | degreesOfFreedom, |
| double | arg | ||
| ) | [inline] |
Cumulative chi square distribution.
Computes the cumulative density of a chi square distribution with degreesOfFreedom and tolerance accuracy at the given argument arg, i.e. the probability that a random number drawn from the distribution is below arg by calling noncentralChi2CDF(degreesOfFreedom, 0.0, arg, accuracy).
Definition at line 176 of file distributions.h.
References mrpt::math::noncentralChi2CDF().
| double BASE_IMPEXP mrpt::math::chi2inv | ( | double | P, |
| unsigned int | dim = 1 |
||
| ) |
The "quantile" of the Chi-Square distribution, for dimension "dim" and probability 0<P<1 (the inverse of chi2CDF) An aproximation from the Wilson-Hilferty transformation is used.
Referenced by mrpt::slam::PF_implementation::PF_SLAM_implementation_pfStandardProposal(), and mrpt::slam::PF_implementation::PF_SLAM_implementation_pfAuxiliaryPFStandardAndOptimal().
| double mrpt::math::chi2PDF | ( | unsigned int | degreesOfFreedom, |
| double | arg, | ||
| double | accuracy = 1e-7 |
||
| ) | [inline] |
Chi square distribution.
Computes the density of a chi square distribution with degreesOfFreedom and tolerance accuracy at the given argument arg by calling noncentralChi2(degreesOfFreedom, 0.0, arg, accuracy).
Definition at line 278 of file distributions.h.
References mrpt::math::detail::noncentralChi2CDF_exact().
| void mrpt::math::condidenceIntervals | ( | const CONTAINER & | data, |
| typename CONTAINER::value_type & | out_mean, | ||
| typename CONTAINER::value_type & | out_lower_conf_interval, | ||
| typename CONTAINER::value_type & | out_upper_conf_interval, | ||
| const double | confidenceInterval = 0.1, |
||
| const size_t | histogramNumBins = 1000 |
||
| ) |
Return the mean and the 10%-90% confidence points (or with any other confidence value) of a set of samples by building the cummulative CDF of all the elements of the container.
The container can be any MRPT container (CArray, matrices, vectors).
| confidenceInterval | A number in the range (0,1) such as the confidence interval will be [100*confidenceInterval, 100*(1-confidenceInterval)]. |
Definition at line 288 of file distributions.h.
References MRPT_START, ASSERT_, mrpt::math::mean(), mrpt::math::minimum_maximum(), mrpt::math::histogram(), mrpt::math::cumsum(), mrpt::math::distance(), and MRPT_END.
| void mrpt::math::covariancesAndMean | ( | const VECTOR_OF_VECTORS & | elements, |
| MATRIXLIKE & | covariances, | ||
| VECTORLIKE & | means, | ||
| const bool * | elem_do_wrap2pi = NULL |
||
| ) |
Computes covariances and mean of any vector of containers.
| elements | Any kind of vector of vectors/arrays, eg. std::vector<vector_double>, with all the input samples, each sample in a "row". |
| covariances | Output estimated covariance; it can be a fixed/dynamic matrix or a matrixview. |
| means | Output estimated mean; it can be vector_double/CArrayDouble, etc... |
| elem_do_wrap2pi | If !=NULL; it must point to an array of "bool" of size()==dimension of each element, stating if it's needed to do a wrap to [-pi,pi] to each dimension. |
Definition at line 336 of file base/include/mrpt/math/utils.h.
Referenced by mrpt::math::transform_gaussian_montecarlo().
| void mrpt::math::covariancesAndMeanWeighted | ( | const VECTOR_OF_VECTORS & | elements, |
| MATRIXLIKE & | covariances, | ||
| VECTORLIKE & | means, | ||
| const VECTORLIKE2 * | weights_mean, | ||
| const VECTORLIKE3 * | weights_cov, | ||
| const bool * | elem_do_wrap2pi = NULL |
||
| ) | [inline] |
Computes covariances and mean of any vector of containers, given optional weights for the different samples.
| elements | Any kind of vector of vectors/arrays, eg. std::vector<vector_double>, with all the input samples, each sample in a "row". |
| covariances | Output estimated covariance; it can be a fixed/dynamic matrix or a matrixview. |
| means | Output estimated mean; it can be vector_double/CArrayDouble, etc... |
| weights_mean | If !=NULL, it must point to a vector of size()==number of elements, with normalized weights to take into account for the mean. |
| weights_cov | If !=NULL, it must point to a vector of size()==number of elements, with normalized weights to take into account for the covariance. |
| elem_do_wrap2pi | If !=NULL; it must point to an array of "bool" of size()==dimension of each element, stating if it's needed to do a wrap to [-pi,pi] to each dimension. |
Definition at line 233 of file base/include/mrpt/math/utils.h.
References ASSERTMSG_, ASSERTDEB_, M_PI, M_2PI, and mrpt::math::wrapToPi().
Referenced by mrpt::math::transform_gaussian_unscented().
| double BASE_IMPEXP mrpt::math::erf | ( | double | x | ) |
The error function of a Normal distribution.
Referenced by mrpt::math::noncentralChi2CDF(), and mrpt::math::detail::noncentralChi2CDF_exact().
| double BASE_IMPEXP mrpt::math::erfc | ( | double | x | ) |
The complementary error function of a Normal distribution.
| double mrpt::math::KLD_Gaussians | ( | const VECTORLIKE1 & | mu0, |
| const MATRIXLIKE1 & | cov0, | ||
| const VECTORLIKE2 & | mu1, | ||
| const MATRIXLIKE2 & | cov1 | ||
| ) |
Kullback-Leibler divergence (KLD) between two independent multivariate Gaussians.
Definition at line 99 of file distributions.h.
References MRPT_START, ASSERT_, mrpt::math::size(), mrpt::math::multiply_HCHt_scalar(), and MRPT_END.
| VECTORLIKE1::value_type mrpt::math::mahalanobisDistance | ( | const VECTORLIKE1 & | X, |
| const VECTORLIKE2 & | MU, | ||
| const MAT & | COV | ||
| ) | [inline] |
Computes the mahalanobis distance of a vector X given the mean MU and the covariance *inverse* COV_inv
.
Definition at line 852 of file base/include/mrpt/math/utils.h.
References mrpt::math::mahalanobisDistance2().
Referenced by mrpt::math::mahalanobisDistance().
| VECTORLIKE::value_type mrpt::math::mahalanobisDistance | ( | const VECTORLIKE & | mean_diffs, |
| const MAT1 & | COV1, | ||
| const MAT2 & | COV2, | ||
| const MAT3 & | CROSS_COV12 | ||
| ) | [inline] |
Computes the mahalanobis distance between two *non-independent* Gaussians (or independent if CROSS_COV12=NULL), given the two covariance matrices and the vector with the difference of their means.
Definition at line 893 of file base/include/mrpt/math/utils.h.
References mrpt::math::mahalanobisDistance().
| MATRIXLIKE::value_type mrpt::math::mahalanobisDistance | ( | const VECTORLIKE & | delta_mu, |
| const MATRIXLIKE & | cov | ||
| ) | [inline] |
Computes the mahalanobis distance between a point and a Gaussian, given the covariance matrix and the vector with the difference between the mean and the point.
Definition at line 919 of file base/include/mrpt/math/utils.h.
References mrpt::math::mahalanobisDistance2().
| VECTORLIKE1::value_type mrpt::math::mahalanobisDistance2 | ( | const VECTORLIKE1 & | X, |
| const VECTORLIKE2 & | MU, | ||
| const MAT & | COV | ||
| ) |
Computes the squared mahalanobis distance of a vector X given the mean MU and the covariance *inverse* COV_inv
.
Definition at line 829 of file base/include/mrpt/math/utils.h.
References MRPT_START, ASSERT_, mrpt::math::size(), mrpt::math::multiply_HCHt_scalar(), and MRPT_END.
Referenced by mrpt::math::mahalanobisDistance().
| VECTORLIKE::value_type mrpt::math::mahalanobisDistance2 | ( | const VECTORLIKE & | mean_diffs, |
| const MAT1 & | COV1, | ||
| const MAT2 & | COV2, | ||
| const MAT3 & | CROSS_COV12 | ||
| ) |
Computes the squared mahalanobis distance between two *non-independent* Gaussians, given the two covariance matrices and the vector with the difference of their means.
Definition at line 866 of file base/include/mrpt/math/utils.h.
References MRPT_START, ASSERT_, mrpt::math::size(), mrpt::math::multiply_HCHt_scalar(), and MRPT_END.
| MATRIXLIKE::value_type mrpt::math::mahalanobisDistance2 | ( | const VECTORLIKE & | delta_mu, |
| const MATRIXLIKE & | cov | ||
| ) | [inline] |
Computes the squared mahalanobis distance between a point and a Gaussian, given the covariance matrix and the vector with the difference between the mean and the point.
Definition at line 907 of file base/include/mrpt/math/utils.h.
References ASSERTDEB_, and mrpt::math::multiply_HCHt_scalar().
| void mrpt::math::mahalanobisDistance2AndLogPDF | ( | const VECLIKE & | diff_mean, |
| const MATRIXLIKE & | cov, | ||
| T & | maha2_out, | ||
| T & | log_pdf_out | ||
| ) |
Computes both, the logarithm of the PDF and the square Mahalanobis distance between a point (given by its difference wrt the mean) and a Gaussian.
Definition at line 1000 of file base/include/mrpt/math/utils.h.
References MRPT_START, ASSERTDEB_, mrpt::math::multiply_HCHt_scalar(), M_2PI, and MRPT_END.
Referenced by mrpt::math::mahalanobisDistance2AndPDF().
| void mrpt::math::mahalanobisDistance2AndPDF | ( | const VECLIKE & | diff_mean, |
| const MATRIXLIKE & | cov, | ||
| T & | maha2_out, | ||
| T & | pdf_out | ||
| ) | [inline] |
Computes both, the PDF and the square Mahalanobis distance between a point (given by its difference wrt the mean) and a Gaussian.
Definition at line 1024 of file base/include/mrpt/math/utils.h.
References mrpt::math::mahalanobisDistance2AndLogPDF().
| std::string BASE_IMPEXP mrpt::math::MATLAB_plotCovariance2D | ( | const CMatrixFloat & | cov22, |
| const vector_float & | mean, | ||
| const float & | stdCount, | ||
| const std::string & | style = std::string("b"), |
||
| const size_t & | nEllipsePoints = 30 |
||
| ) |
Generates a string with the MATLAB commands required to plot an confidence interval (ellipse) for a 2D Gaussian ('float' version).
Generates a string with the MATLAB commands required to plot an confidence interval (ellipse) for a 2D Gaussian ('double' version).
| cov22 | The 2x2 covariance matrix |
| mean | The 2-length vector with the mean |
| stdCount | How many "quantiles" to get into the area of the ellipse: 2: 95%, 3:99.97%,... |
| style | A matlab style string, for colors, line styles,... |
| nEllipsePoints | The number of points in the ellipse to generate |
| cov22 | The 2x2 covariance matrix |
| mean | The 2-length vector with the mean |
| stdCount | How many "quantiles" to get into the area of the ellipse: 2: 95%, 3:99.97%,... |
| style | A matlab style string, for colors, line styles,... |
| nEllipsePoints | The number of points in the ellipse to generate |
| double mrpt::math::noncentralChi2CDF | ( | unsigned int | degreesOfFreedom, |
| T | noncentrality, | ||
| T | arg | ||
| ) |
Cumulative non-central chi square distribution (approximate).
Computes approximate values of the cumulative density of a chi square distribution with degreesOfFreedom, and noncentrality parameter noncentrality at the given argument arg, i.e. the probability that a random number drawn from the distribution is below arg It uses the approximate transform into a normal distribution due to Wilson and Hilferty (see Abramovitz, Stegun: "Handbook of Mathematical Functions", formula 26.3.32). The algorithm's running time is independent of the inputs. The accuracy is only about 0.1 for few degrees of freedom, but reaches about 0.001 above dof = 5.
Definition at line 159 of file distributions.h.
References mrpt::utils::square(), t(), and mrpt::math::erf().
Referenced by mrpt::math::chi2CDF().
| double BASE_IMPEXP mrpt::math::normalCDF | ( | double | p | ) |
Evaluates the Gaussian cumulative density function.
The employed approximation is that from W. J. Cody freely available in http://www.netlib.org/specfun/erf
| double BASE_IMPEXP mrpt::math::normalPDF | ( | double | x, |
| double | mu, | ||
| double | std | ||
| ) |
Evaluates the univariate normal (Gaussian) distribution at a given point "x".
| MATRIXLIKE::value_type mrpt::math::normalPDF | ( | const VECTORLIKE1 & | x, |
| const VECTORLIKE2 & | mu, | ||
| const MATRIXLIKE & | cov, | ||
| const bool | scaled_pdf = false |
||
| ) | [inline] |
Evaluates the multivariate normal (Gaussian) distribution at a given point "x".
| x | A vector or column or row matrix with the point at which to evaluate the pdf. |
| mu | A vector or column or row matrix with the Gaussian mean. |
| cov | The covariance matrix of the Gaussian. |
| scaled_pdf | If set to true, the PDF will be scaled to be in the range [0,1]. |
Definition at line 62 of file distributions.h.
References MRPT_START, ASSERTDEB_, mrpt::math::multiply_HCHt_scalar(), M_2PI, mrpt::math::size(), and MRPT_END.
| MATRIXLIKE::value_type mrpt::math::normalPDF | ( | const VECTORLIKE & | d, |
| const MATRIXLIKE & | cov | ||
| ) |
Evaluates the multivariate normal (Gaussian) distribution at a given point given its distance vector "d" from the Gaussian mean.
Definition at line 81 of file distributions.h.
References MRPT_START, ASSERTDEB_, mrpt::math::multiply_HCHt_scalar(), M_2PI, and MRPT_END.
| double BASE_IMPEXP mrpt::math::normalQuantile | ( | double | p | ) |
Evaluates the Gaussian distribution quantile for the probability value p=[0,1].
The employed approximation is that from Peter J. Acklam (pjacklam@online.no), freely available in http://home.online.no/~pjacklam.
| void mrpt::math::productIntegralAndMahalanobisTwoGaussians | ( | const VECLIKE & | mean_diffs, |
| const MATLIKE1 & | COV1, | ||
| const MATLIKE2 & | COV2, | ||
| T & | maha2_out, | ||
| T & | intprod_out, | ||
| const MATLIKE1 * | CROSS_COV12 = NULL |
||
| ) |
Computes both, the integral of the product of two Gaussians and their square Mahalanobis distance.
Definition at line 973 of file base/include/mrpt/math/utils.h.
| T mrpt::math::productIntegralTwoGaussians | ( | const std::vector< T > & | mean_diffs, |
| const CMatrixTemplateNumeric< T > & | COV1, | ||
| const CMatrixTemplateNumeric< T > & | COV2 | ||
| ) |
Computes the integral of the product of two Gaussians, with means separated by "mean_diffs" and covariances "COV1" and "COV2".
Definition at line 928 of file base/include/mrpt/math/utils.h.
| T mrpt::math::productIntegralTwoGaussians | ( | const std::vector< T > & | mean_diffs, |
| const CMatrixFixedNumeric< T, DIM, DIM > & | COV1, | ||
| const CMatrixFixedNumeric< T, DIM, DIM > & | COV2 | ||
| ) |
Computes the integral of the product of two Gaussians, with means separated by "mean_diffs" and covariances "COV1" and "COV2".
Definition at line 951 of file base/include/mrpt/math/utils.h.
References ASSERT_, mrpt::math::UNINITIALIZED_MATRIX, and M_2PI.
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |