Public Member Functions | Protected Attributes

WeightedClassCounter< T > Class Template Reference

Finds out which class is the best from a series of weighted data points. More...

List of all members.

Public Member Functions

 WeightedClassCounter (bool canbeneg=true)
void add (int val, T wt=1)
bool valid () const
int result () const
void clear ()

Protected Attributes

bool canbeneg_
TypeSet< T > * wts_

Detailed Description

template<class T>
class WeightedClassCounter< T >

Finds out which class is the best from a series of weighted data points.


Constructor & Destructor Documentation

template<class T >
WeightedClassCounter< T >::WeightedClassCounter ( bool  canbeneg = true  )  [inline]

Member Function Documentation

template<class T >
void WeightedClassCounter< T >::add ( int  val,
wt = 1 
) [inline]
template<class T >
void WeightedClassCounter< T >::clear (  )  [inline]
template<class T >
int WeightedClassCounter< T >::result (  )  const [inline]
template<class T >
bool WeightedClassCounter< T >::valid (  )  const [inline]

Member Data Documentation

template<class T >
bool WeightedClassCounter< T >::canbeneg_ [protected]
template<class T >
TypeSet<T>* WeightedClassCounter< T >::wts_ [protected]