#include <Feature.h>
Public Member Functions | |
| Feature (int, double) | |
| Constructor. | |
| virtual int | getIndex () |
| Return the index in the original vector represeting the data point. | |
| virtual double | getValue () |
| Return the value of the feature. | |
| virtual void | set (int, double) |
| Set the feature. | |
| virtual | ~Feature () |
| Default destructor. | |
Private Attributes | |
| int | index |
| Index in the original vector representing a data point. | |
| double | value |
| The value of the Feature. | |
Due the sparse matrix representation of input data matrix, the class Feature was implemented in order to incapsulate the index in the original vector and value of the feature.
Definition at line 19 of file Feature.h.
| damina::Feature::Feature | ( | int | index, | |
| double | value | |||
| ) |
| damina::Feature::~Feature | ( | ) | [virtual] |
| int damina::Feature::getIndex | ( | ) | [virtual] |
Return the index in the original vector represeting the data point.
Definition at line 42 of file Feature.cpp.
References index.
Referenced by damina::OneClassSVM::trainingSetToProblem().
00042 { 00043 return index; 00044 }
Here is the caller graph for this function:

| double damina::Feature::getValue | ( | ) | [virtual] |
Return the value of the feature.
Definition at line 51 of file Feature.cpp.
References value.
Referenced by damina::OneClassSVM::trainingSetToProblem().
00051 { 00052 return value; 00053 }
Here is the caller graph for this function:

| void damina::Feature::set | ( | int | index, | |
| double | value | |||
| ) | [virtual] |
int damina::Feature::index [private] |
Index in the original vector representing a data point.
Definition at line 25 of file Feature.h.
Referenced by getIndex().
double damina::Feature::value [private] |
1.5.2