Biorithm  1.1
Public Member Functions | Protected Attributes
BSEvaluator Class Reference

This class evaluates a set of rowsets based on balance and support metrics. More...

#include <BSEvaluator.h>

Inheritance diagram for BSEvaluator:
Evaluator

List of all members.

Public Member Functions

 BSEvaluator (float balance=0.5, float support=1.0, BinaryMatrix *bm=NULL)
 BSEvaluator (const BSEvaluator &rhs)
virtual ~BSEvaluator ()
virtual BSEvaluatoroperator= (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

Detailed Description

This class evaluates a set of rowsets based on balance and support metrics.


Constructor & Destructor Documentation

BSEvaluator::BSEvaluator ( float  balance = 0.5,
float  support = 1.0,
BinaryMatrix bm = NULL 
)

The abstract BSEvaluator class

Author:
Conley Owens ibcliffo@vt.edu
Date:
2007-10-27 The constructor

------------------------------- Parameters ------------------------------- float balance The balance float support The support BinaryMatrix* bm The truth matrix

The copy constructor

------------------------------- Parameters ------------------------------- const BSEvaluator& src The source evaluator

The destructor


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Friends