00001 /*========================================================================== 00002 * Copyright (c) 2002 University of Massachusetts. All Rights Reserved. 00003 * 00004 * Use of the Lemur Toolkit for Language Modeling and Information Retrieval 00005 * is subject to the terms of the software license set forth in the LICENSE 00006 * file included with this software, and also available at 00007 * http://www.lemurproject.org/license.html 00008 * 00009 *========================================================================== 00010 */ 00011 /* 00012 Author: dmf 11/2002 00013 */ 00014 00015 #ifndef _THRESHOLDFCN_HPP 00016 #define _THRESHOLDFCN_HPP 00017 00019 class ThresholdFcn{ 00020 public: 00021 ThresholdFcn(double val) : thresh(val) {} 00022 virtual ~ThresholdFcn() {} 00023 virtual double threshold(int size = 0); 00024 virtual bool threshold(double score, int size = 0); 00025 double thresh; 00026 }; 00027 00028 #endif /* _THRESHOLDFCN_HPP */