#include <FeatVec.h>
Public Member Functions | |
FeatVec (int size) | |
feature vectors should be used as a fixed size vector | |
FeatVec (const FeatVec &) | |
void | normalize () |
creates an orthonormal vector | |
AnnotationScore | sumEval () const |
int | getNumDim () const |
return the number of feature dimensions for the feature vector | |
float * | toFloatArr (float *, unsigned) const |
convert feature vector to a array of floats | |
void | elem_normalize () |
some EvidenceType objects might have a normalization feature that needs to be run | |
void | setVals (const FeatVec &) |
set the values of the feature vector | |
std::ostream & | val_print (std::ostream &) const |
print the values | |
void | finish () |
Friends | |
double | operator- (const FeatVec &, const FeatVec &) |
return the sum of the difference between each matching element of two vectors return ( xi-yi) |
|
feature vectors should be used as a fixed size vector
|
|
set the values of the feature vector
|