25 #ifndef WCOVARIANCESOLVER_H
26 #define WCOVARIANCESOLVER_H
29 #include <Eigen/Dense>
30 #include "core/common/math/linearAlgebra/WPosition.h"
34 using Eigen::MatrixXd;
54 void analyzeData(
const vector<WPosition>& dataSet );
Calculates covariances of a point data set.
WPosition getMean()
Returns the mean coordinate of the input point data set.
virtual ~WCovarianceSolver()
Destroys the instance of the Covariance solver.
void calculateCovariance(const vector< WPosition > &dataSet)
Calculates the covariance of the input point data.
void addPointToCovariance(const WPosition &point)
Adds a point to the covariance matrix.
WPosition m_mean
The mean of all input points.
MatrixXd m_covariance
The calculated covariance matrix.
MatrixXd getCovariance()
Returns the covariance matrix corresponding to the input point data set.
void analyzeData(const vector< WPosition > &dataSet)
Analyzes the dimension covariances of a point data set.
void calculateMean(const vector< WPosition > &dataSet)
Calculates the mean of the input point data coordinates.
WCovarianceSolver()
Creates an instance of the Covariance solver.
This only is a 3d double vector.