Darwin
1.10(beta)
|
Augments input feature vector with square of each feature (normalized so that if input is zero mean and unit variance so will output) as well as cross-terms and constant one (i.e., to allow for a bias weight) More...
Public Member Functions | |
drwnQuadraticFeatureMap (int nFeatures) | |
const char * | type () const |
returns object type as a string (e.g., Foo::type() { return "Foo"; }) | |
drwnQuadraticFeatureMap * | clone () const |
returns a copy of the class usually implemented as virtual Foo* clone() { return new Foo(*this); } | |
int | numParameters () const |
returns the number of features in the output space | |
vector< double > | operator() (const vector< double > &x) const |
feature vector | |
double | dot (const vector< double > &theta, const vector< double > &x) const |
dot product | |
void | mac (vector< double > &theta, const vector< double > &x, double alpha) const |
multiply-accumulate | |
![]() | |
drwnFeatureMap () | |
default constructor | |
drwnFeatureMap (int nFeatures) | |
construct with known number of input features | |
virtual | ~drwnFeatureMap () |
destructor | |
int | numFeatures () const |
returns the number of features in the input space | |
virtual void | initialize (int nFeatures) |
initialize number of (intput) features | |
Additional Inherited Members | |
![]() | |
int | _nFeatures |
number of input features | |
Augments input feature vector with square of each feature (normalized so that if input is zero mean and unit variance so will output) as well as cross-terms and constant one (i.e., to allow for a bias weight)