CEDRIC  Revision_backup-2009-02
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Signature< F > Class Template Reference

#include <Signature.h>

Public Member Functions

int numFeatures () const
 
const F & feature (int i) const
 
float weight (int i) const
 
void add (const F &f, float w)
 
void del (int i)
 

Protected Member Functions

void clear ()
 

Protected Attributes

std::vector< F > m_features
 
std::vector< float > m_weights
 

Detailed Description

template<class F>
class Signature< F >

Common signature template with feature type as template parameter. Note that this class is independent of the actual feature type.

Member Function Documentation

template<class F>
void Signature< F >::add ( const F &  f,
float  w 
)
inline
template<class F>
void Signature< F >::clear ( )
inlineprotected
template<class F>
void Signature< F >::del ( int  i)
inline
template<class F>
const F& Signature< F >::feature ( int  i) const
inline
template<class F>
int Signature< F >::numFeatures ( ) const
inline

Referenced by createSignaturesAll().

template<class F>
float Signature< F >::weight ( int  i) const
inline

Member Data Documentation

template<class F>
std::vector<F> Signature< F >::m_features
protected
template<class F>
std::vector<float> Signature< F >::m_weights
protected