Biorithm  1.1
 All Classes Functions Variables Typedefs Friends
ChisqFilter.h
00001 /**************************************************************************
00002  * Copyright (c) 2007 Clifford Conley Owens III                           *
00003  *                                                                        *
00004  * This file is part of Biorithm.                                         *
00005  *                                                                        *
00006  * Biorithm is free software: you can redistribute it and/or modify       *
00007  * it under the terms of the GNU General Public License as published by   *
00008  * the Free Software Foundation, either version 3 of the License, or      *
00009  * (at your option) any later version.                                    *
00010  *                                                                        *
00011  * Biorithm is distributed in the hope that it will be useful,            *
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00014  * GNU General Public License for more details.                           *
00015  *                                                                        *
00016  * You should have received a copy of the GNU General Public License      *
00017  * along with Biorithm.  If not, see <http://www.gnu.org/licenses/>.      *
00018  *                                                                        *
00019  **************************************************************************/
00020 
00032 #ifndef CHISQFILTER_H
00033 #define CHISQFILTER_H
00034 
00035 // ---------------------------- Internal Headers ---------------------------- //
00036 
00037 #include "Filter.h"
00038 
00039 // ---------------------------- External Headers ---------------------------- //
00040 
00047 class ChisqFilter: public Filter
00048 {
00049     protected:
00050         // Whether or not to print the chisq value
00051         bool print;
00052 
00053         // The minimum pvalue
00054         double minchisq;
00055 
00056     public:
00057         ChisqFilter(double minchisq = 0.0, bool print = true);
00058         ChisqFilter(const ChisqFilter& src);
00059         virtual ~ChisqFilter();
00060         virtual ChisqFilter& operator =(const ChisqFilter& rhs);
00061         virtual bool filter(const ItemSet& is, TruthMatrix& tm, string& msg);
00062 };
00063 
00064 #endif
 All Classes Functions Variables Typedefs Friends