15 #ifndef __MLPACK_METHODS_PCA_PCA_HPP 16 #define __MLPACK_METHODS_PCA_PCA_HPP 50 void Apply(
const arma::mat& data,
51 arma::mat& transformedData,
53 arma::mat& eigvec)
const;
63 void Apply(
const arma::mat& data,
64 arma::mat& transformedData,
65 arma::vec& eigVal)
const;
78 double Apply(arma::mat& data,
const size_t newDimension)
const;
81 inline double Apply(arma::mat& data,
const int newDimension)
const 83 return Apply(data,
size_t(newDimension));
101 double Apply(arma::mat& data,
const double varRetained)
const;
Linear algebra utility functions, generally performed on matrices or vectors.
void Apply(const arma::mat &data, arma::mat &transformedData, arma::vec &eigval, arma::mat &eigvec) const
Apply Principal Component Analysis to the provided data set.
This class implements principal components analysis (PCA).
bool & ScaleData()
Modify whether or not this PCA object will scale (by standard deviation) the data when PCA is perform...
bool scaleData
Whether or not the data will be scaled by standard deviation when PCA is performed.
bool ScaleData() const
Get whether or not this PCA object will scale (by standard deviation) the data when PCA is performed...
double Apply(arma::mat &data, const int newDimension) const
This overload is here to make sure int gets casted right to size_t.
PCA(const bool scaleData=false)
Create the PCA object, specifying if the data should be scaled in each dimension by standard deviatio...
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...