28 #include <bias_config.h>
30 #include <Base/Debug/Debug.hh>
32 #include <Base/Math/Vector.hh>
33 #include <Base/Math/Matrix.hh>
47 class BIASMathAlgo_EXPORT
PCA {
50 PCA():reductionSize_(0) {}
61 int reductionSize=-1);
72 void ComputeReductionMatrix(
const std::vector<std::vector<
75 int reductionSize=-1);
84 bool normalize =
false,
85 int reductionSize=-1);
108 void SetReductionSize(
int size);
BIAS::Vector< double > S_
principal component analysis on a set of vectors with PCA it is possible to find the most important d...
BIAS::Vector< PCAType > mean_
void GetVariances(BIAS::Vector< double > &S)
get eigenvalues of data (call after ComputeReductionMatrix)
matrix class with arbitrary size, indexing is row major.