Main Page | Class Hierarchy | Class List | File List | Class Members

FeatVec Class Reference

represents a vector of EvidenceType* and is used to store a heterogenous collection evidence types. More...

#include <FeatVec.h>

List of all members.

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)


Detailed Description

represents a vector of EvidenceType* and is used to store a heterogenous collection evidence types.


Constructor & Destructor Documentation

FeatVec::FeatVec int  size  )  [inline]
 

feature vectors should be used as a fixed size vector

Parameters:
int size - number of elements in the feature fector


Member Function Documentation

void FeatVec::setVals const FeatVec  ) 
 

set the values of the feature vector

Parameters:
- const FeatVec& input values to set


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