Darwin
1.10(beta)
|
Defines the interface for a joint feature mapping .
More...
Public Member Functions | |
drwnJointFeatureMap () | |
default constructor | |
drwnJointFeatureMap (int nFeatures, int nClasses) | |
construct with known number of input features and classes | |
virtual | ~drwnJointFeatureMap () |
destructor | |
virtual drwnJointFeatureMap * | 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 | |
int | numClasses () const |
returns the number of classes | |
virtual int | numParameters () const =0 |
returns the number of features in the (joint) output space | |
virtual void | initialize (int nFeatures, int nClasses) |
initialize number of classes and number of features | |
virtual vector< double > | operator() (const vector< double > &x, int y) const =0 |
returns ![]() ![]() | |
virtual vector< double > | operator() (const vector< double > &x) const |
returns ![]() | |
virtual double | dot (const vector< double > &theta, const vector< double > &x, int y) const |
returns the dot product ![]() | |
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, int y) const |
provides multiply-accumulate operation ![]() | |
virtual void | mac (vector< double > &theta, const vector< double > &x, const vector< 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 | |
int | _nClasses |
number of class labels | |
Defines the interface for a joint feature mapping .