|
Biorithm
1.1
|
This class evaluates a set of rowsets based on balance and support metrics. More...
#include <BSEvaluator.h>
Public Member Functions | |
| BSEvaluator (float balance=0.5, float support=1.0, BinaryMatrix *bm=NULL) | |
| BSEvaluator (const BSEvaluator &rhs) | |
| virtual | ~BSEvaluator () |
| virtual BSEvaluator & | operator= (const BSEvaluator &rhs) |
| virtual bool | badBalance () const |
| virtual unsigned int | getMinRowset () const |
| virtual void | setBinaryMatrix (BinaryMatrix *bm) |
| virtual unsigned int | getUpperBound (const vector< unsigned int > &counts) const |
| virtual unsigned int | getUpperBound () const |
Protected Attributes | |
| double | balance |
| double | support |
| unsigned int | rsreq |
| unsigned int | upperBound |
This class evaluates a set of rowsets based on balance and support metrics.
| BSEvaluator::BSEvaluator | ( | float | balance = 0.5, |
| float | support = 1.0, |
||
| BinaryMatrix * | bm = NULL |
||
| ) |
The abstract BSEvaluator class
------------------------------- Parameters ------------------------------- float balance The balance float support The support BinaryMatrix* bm The truth matrix
| BSEvaluator::BSEvaluator | ( | const BSEvaluator & | src | ) |
The copy constructor
------------------------------- Parameters ------------------------------- const BSEvaluator& src The source evaluator
| BSEvaluator::~BSEvaluator | ( | ) | [virtual] |
The destructor
| bool BSEvaluator::badBalance | ( | ) | const [virtual] |
Tests to see if the balance is bad, each rowset will need to only appear 0 times
--------------------------------- Return --------------------------------- true: The balance is too low false: The balance is fine
| unsigned int BSEvaluator::getMinRowset | ( | ) | const [virtual] |
Gets the minimum rowset size
--------------------------------- Return --------------------------------- The minimum rowset size
| unsigned int BSEvaluator::getUpperBound | ( | const vector< unsigned int > & | counts | ) | const [virtual] |
Given a set of rowsets, this determines the upper bound
------------------------------- Parameters ------------------------------- const vector<unsigned int>& counts The rowset sizes
--------------------------------- Return --------------------------------- A the upper bound on the support of the itemset that generated these sizes
Implements Evaluator.
| unsigned int BSEvaluator::getUpperBound | ( | ) | const [virtual] |
Gets the largest itemset size possible given the matrix
--------------------------------- Return --------------------------------- The largest itemset size possible
Implements Evaluator.
| BSEvaluator & BSEvaluator::operator= | ( | const BSEvaluator & | rhs | ) | [virtual] |
The = operator
------------------------------- Parameters ------------------------------- const BSEvaluator& rhs The right hand side
--------------------------------- Return --------------------------------- A reference to the evaluator
| void BSEvaluator::setBinaryMatrix | ( | BinaryMatrix * | bm | ) | [virtual] |
Sets the binary matrix
------------------------------- Parameters ------------------------------- BinaryMatrix* bm The binary matrix
Reimplemented from Evaluator.
1.7.6.1