Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
drwnQuadraticFeatureMap Class Reference

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...

Inheritance diagram for drwnQuadraticFeatureMap:
drwnFeatureMap drwnTypeable drwnCloneable

Public Member Functions

 drwnQuadraticFeatureMap (int nFeatures)
 
const char * type () const
 returns object type as a string (e.g., Foo::type() { return "Foo"; })
 
drwnQuadraticFeatureMapclone () 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
 
- Public Member Functions inherited from drwnFeatureMap
 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

- Protected Attributes inherited from drwnFeatureMap
int _nFeatures
 number of input features
 

Detailed Description

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)


The documentation for this class was generated from the following file: