![]() |
OpenWalnut
1.5.0dev
|
Calculates covariances of a point data set. More...
#include <WCovarianceSolver.h>
Collaboration diagram for WCovarianceSolver:Public Member Functions | |
| WCovarianceSolver () | |
| Creates an instance of the Covariance solver. More... | |
| virtual | ~WCovarianceSolver () |
| Destroys the instance of the Covariance solver. More... | |
| void | analyzeData (const vector< WPosition > &dataSet) |
| Analyzes the dimension covariances of a point data set. More... | |
| WPosition | getMean () |
| Returns the mean coordinate of the input point data set. More... | |
| MatrixXd | getCovariance () |
| Returns the covariance matrix corresponding to the input point data set. More... | |
Private Member Functions | |
| void | calculateMean (const vector< WPosition > &dataSet) |
| Calculates the mean of the input point data coordinates. More... | |
| void | calculateCovariance (const vector< WPosition > &dataSet) |
| Calculates the covariance of the input point data. More... | |
| void | addPointToCovariance (const WPosition &point) |
| Adds a point to the covariance matrix. More... | |
Private Attributes | |
| WPosition | m_mean |
| The mean of all input points. More... | |
| MatrixXd | m_covariance |
| The calculated covariance matrix. More... | |
Calculates covariances of a point data set.
Definition at line 39 of file WCovarianceSolver.h.
| WCovarianceSolver::WCovarianceSolver | ( | ) |
Creates an instance of the Covariance solver.
Definition at line 28 of file WCovarianceSolver.cpp.
|
virtual |
Destroys the instance of the Covariance solver.
Definition at line 32 of file WCovarianceSolver.cpp.
|
private |
Adds a point to the covariance matrix.
| point | Point in the data set to be added to the covariance matrix. |
Definition at line 71 of file WCovarianceSolver.cpp.
References m_covariance, and m_mean.
Referenced by calculateCovariance().
Here is the caller graph for this function:| void WCovarianceSolver::analyzeData | ( | const vector< WPosition > & | dataSet | ) |
Analyzes the dimension covariances of a point data set.
| dataSet | The point data to be analyzed. |
Definition at line 35 of file WCovarianceSolver.cpp.
References calculateCovariance(), and calculateMean().
Referenced by WPrincipalComponentAnalysis::analyzeData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Calculates the covariance of the input point data.
| dataSet | Input point data that is used for the covariance matrix calculation. |
Definition at line 57 of file WCovarianceSolver.cpp.
References addPointToCovariance(), m_covariance, and m_mean.
Referenced by analyzeData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Calculates the mean of the input point data coordinates.
| dataSet | Input point data that is used for the mean coordinate calculation. |
Definition at line 44 of file WCovarianceSolver.cpp.
References m_mean.
Referenced by analyzeData().
Here is the caller graph for this function:| MatrixXd WCovarianceSolver::getCovariance | ( | ) |
Returns the covariance matrix corresponding to the input point data set.
Definition at line 84 of file WCovarianceSolver.cpp.
References m_covariance.
Referenced by WPrincipalComponentAnalysis::analyzeData().
Here is the caller graph for this function:| WPosition WCovarianceSolver::getMean | ( | ) |
Returns the mean coordinate of the input point data set.
Definition at line 40 of file WCovarianceSolver.cpp.
References m_mean.
Referenced by WPrincipalComponentAnalysis::getMean().
Here is the caller graph for this function:
|
private |
The calculated covariance matrix.
Definition at line 91 of file WCovarianceSolver.h.
Referenced by addPointToCovariance(), calculateCovariance(), and getCovariance().
|
private |
The mean of all input points.
Definition at line 87 of file WCovarianceSolver.h.
Referenced by addPointToCovariance(), calculateCovariance(), calculateMean(), and getMean().