|
Biorithm
1.1
|
This class is the partition distance filter that finds similar truth tables. More...
#include <PDistFilter.h>
Public Member Functions | |
| PDistFilter (double maxpdist=0.0, bool print=true) | |
| PDistFilter (const PDistFilter &src) | |
| virtual PDistFilter & | operator= (const PDistFilter &rhs) |
| virtual bool | filter (const ItemSet &is, TruthMatrix &tm, string &msg) |
Protected Member Functions | |
| virtual void | evaluateall () |
| virtual bool | ismatch (const vector< vector< unsigned int > > &indecies1, const vector< vector< unsigned int > > &indecies2, double &distance) const |
Protected Attributes | |
| bool | |
| double | maxpdist |
| TruthMatrix * | tm |
| vector< ItemSet > | sets |
This class is the partition distance filter that finds similar truth tables.
PDistFilter.h The partition distance filter
| PDistFilter::PDistFilter | ( | double | maxpdist = 0.0, |
| bool | print = true |
||
| ) |
PDistFilter.cpp The chisq filter
| bool PDistFilter::filter | ( | const ItemSet & | is, |
| TruthMatrix & | tm, | ||
| string & | msg | ||
| ) | [virtual] |
This method finds if the tt has a similar tt
------------------------------- Parameters ------------------------------- const ItemSet& is The truth table to examine TruthMatrix& tm The matrix where the truth table came from string& msg We can alter this to add a message to the filter, IE: what tt it is similar to
--------------------------------- Return --------------------------------- True if it passed, false if not
Implements Filter.
1.7.6.1