Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ProbDictEntryFilter Class Reference

Accept all entries above a certain probability threshold. More...

#include <PDict.hpp>

Inheritance diagram for ProbDictEntryFilter:

DictEntryFilter List of all members.

Public Methods

 ProbDictEntryFilter (double thresh=0.0)
 Initialize threshold for filter.

bool accept (const DictEntry &entry) const
 Accept or reject an entry based on probability threshold.


Detailed Description

Accept all entries above a certain probability threshold.


Constructor & Destructor Documentation

ProbDictEntryFilter::ProbDictEntryFilter double    thresh = 0.0 [inline]
 

Initialize threshold for filter.

Parameters:
thresh  the value of the filter's threshold. Default 0.


Member Function Documentation

bool ProbDictEntryFilter::accept const DictEntry   entry const [inline, virtual]
 

Accept or reject an entry based on probability threshold.

Parameters:
entry  The entry to filter
Returns:
true if the entry's probability is greater than threshold, otherwise false.

Implements DictEntryFilter.


The documentation for this class was generated from the following file:
Generated on Wed Nov 3 12:59:51 2004 for Lemur Toolkit by doxygen1.2.18