21 #include "drwnFeatureTransform.h" 22 #include "drwnSuffStats.h" 25 using namespace Eigen;
58 double _energyThreshold;
59 bool _doNormalization;
61 VectorXd _translation;
75 const char *
type()
const {
return "drwnPCA"; }
80 bool save(drwnXMLNode& node)
const;
81 bool load(drwnXMLNode& node);
85 int numInputs()
const {
return _projection.cols(); }
94 double train(
const vector<vector<double> >& features);
99 void transform(
const vector<double>& x, vector<double>& y)
const;
int numOutputs() const
feature vector size for the output space
Definition: drwnPCA.h:87
int numInputs() const
feature vector size for the input space
Definition: drwnPCA.h:85
Implements a class for accumulating first- and second-order sufficient statistics (moments)...
Definition: drwnSuffStats.h:43
Principal component analysis feature transformation.
Definition: drwnPCA.h:55
drwnPCA * clone() const
returns a copy of the class usually implemented as virtual Foo* clone() { return new Foo(*this); } ...
Definition: drwnPCA.h:76
const char * type() const
returns object type as a string (e.g., Foo::type() { return "Foo"; })
Definition: drwnPCA.h:75