Finds out which class is the best from a series of weighted data points. More...
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_ |
Finds out which class is the best from a series of weighted data points.
| WeightedClassCounter< T >::WeightedClassCounter | ( | bool | canbeneg = true |
) | [inline] |
| void WeightedClassCounter< T >::add | ( | int | val, | |
| T | wt = 1 | |||
| ) | [inline] |
| void WeightedClassCounter< T >::clear | ( | ) | [inline] |
| int WeightedClassCounter< T >::result | ( | ) | const [inline] |
| bool WeightedClassCounter< T >::valid | ( | ) | const [inline] |
bool WeightedClassCounter< T >::canbeneg_ [protected] |
TypeSet<T>* WeightedClassCounter< T >::wts_ [protected] |
1.7.1