Function mrpt::math::MATLAB_plotCovariance2D(const CMatrixDouble&, const CVectorDouble&, float, const std::string&, size_t)
Defined in File utils.h
Function Documentation
-
std::string mrpt::math::MATLAB_plotCovariance2D(const CMatrixDouble &cov22, const CVectorDouble &mean, float stdCount, const std::string &style = std::string("b"), size_t nEllipsePoints = 30)
Generates a string with the MATLAB commands required to plot an confidence interval (ellipse) for a 2D Gaussian (‘double’ version).
- Parameters:
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