Darwin
1.10(beta)
|
Defines the interface for a feature mapping .
More...
Public Member Functions | |
drwnFeatureMap () | |
default constructor | |
drwnFeatureMap (int nFeatures) | |
construct with known number of input features | |
virtual | ~drwnFeatureMap () |
destructor | |
virtual drwnFeatureMap * | clone () const =0 |
returns a copy of the class usually implemented as virtual Foo* clone() { return new Foo(*this); } | |
int | numFeatures () const |
returns the number of features in the input space | |
virtual int | numParameters () const =0 |
returns the number of features in the output space | |
virtual void | initialize (int nFeatures) |
initialize number of (intput) features | |
virtual vector< double > | operator() (const vector< double > &x) const =0 |
returns ![]() ![]() | |
virtual double | dot (const vector< double > &theta, const vector< double > &x) const |
returns the dot product ![]() | |
virtual void | mac (vector< double > &theta, const vector< double > &x, double alpha) const |
provides multiply-accumulate operation ![]() | |
![]() | |
virtual const char * | type () const =0 |
returns object type as a string (e.g., Foo::type() { return "Foo"; }) | |
Protected Attributes | |
int | _nFeatures |
number of input features | |
Defines the interface for a feature mapping .