Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::dictionary::ProbDictEntryFilter Class Reference

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

#include <PDict.hpp>

Inheritance diagram for lemur::dictionary::ProbDictEntryFilter:

lemur::dictionary::DictEntryFilter List of all members.

Public Member Functions

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

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


Private Attributes

double threshold

Detailed Description

Accept all entries above a certain probability threshold.


Constructor & Destructor Documentation

lemur::dictionary::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 lemur::dictionary::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 lemur::dictionary::DictEntryFilter.


Member Data Documentation

double lemur::dictionary::ProbDictEntryFilter::threshold [private]
 


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:05 2010 for Lemur by doxygen 1.3.4