Biorithm  1.1
Public Member Functions | Protected Member Functions | Protected Attributes
DualMiner Class Reference

This class takes an input stream of a matrix data file and analyzes the the independence of the columns It uses the lattice class to only count the "all positive" bitpatterns. More...

#include <DualMiner.h>

Inheritance diagram for DualMiner:
LatticeMiner Miner Monitorable

List of all members.

Public Member Functions

 DualMiner (float balance=0.5, float support=1.0, unsigned int buffer_size=1000, bool positive=false, BinaryMatrix *tm=NULL, int mode=MODE_DUAL_NULL)
 DualMiner (const DualMiner &src)
virtual ~DualMiner ()
virtual DualMineroperator= (const DualMiner &rhs)

Protected Member Functions

virtual void analyzeHelper ()
virtual void analyzeLevels (unsigned int bot, unsigned int top, const PatternBounder *pb)
virtual unsigned int analyzeLevel (unsigned int level)
virtual void handlePrinting (unsigned int level)
virtual double scoreLevel (unsigned int level, unsigned int bot, unsigned int top, const PatternBounder *pb) const

Protected Attributes

BSEvaluatorbse
int mode

Detailed Description

This class takes an input stream of a matrix data file and analyzes the the independence of the columns It uses the lattice class to only count the "all positive" bitpatterns.


Constructor & Destructor Documentation

DualMiner::DualMiner ( float  balance = 0.5,
float  support = 1.0,
unsigned int  buffer_size = 1000,
bool  positive = false,
BinaryMatrix bm = NULL,
int  mode = MODE_DUAL_NULL 
)

The Miner that uses the lattice data structure this lets it only count the positive itemsets

Author:
Conley Owens ibcliffo@vt.edu
Date:
2007-06-21 The constructor

------------------------------- Parameters ------------------------------- float balance The minimum fraction of rows that must comprise a bitpattern float support The fraction of bitpatterns that have to succeed at each level unsigned int buffer_size the amount of combinations allowed to sit in the queue at once

DualMiner::DualMiner ( const DualMiner src)

The copy constructor

------------------------------- Parameters ------------------------------- const DualMiner& src The source Miner

DualMiner::~DualMiner ( ) [virtual]

Destructor


Member Function Documentation

void DualMiner::analyzeHelper ( ) [protected, virtual]

Analyzes the matrix, one level at a time

--------------------------------- Return --------------------------------- An error message

Implements Miner.

unsigned int DualMiner::analyzeLevel ( unsigned int  level) [protected, virtual]

Analyzes a single level

------------------------------- Parameters ------------------------------- unsigned int level The current level

--------------------------------- Return --------------------------------- Whether or not we should continue (whether or not any matches were found)

void DualMiner::analyzeLevels ( unsigned int  bot,
unsigned int  top,
const PatternBounder pb 
) [protected, virtual]

Analyzes a set of levels

------------------------------- Parameters ------------------------------- unsigned int bot The bottom level unsigned int top The top level const PatternBounder* pb The pattern bounder

--------------------------------- Return --------------------------------- Whether or not we should continue (whether or not any matches were found)

void DualMiner::handlePrinting ( unsigned int  prevlevel) [protected, virtual]

Handle printing

------------------------------- Parameters ------------------------------- unsigned int prevlevel The previous level

DualMiner & DualMiner::operator= ( const DualMiner rhs) [virtual]

The = operator

------------------------------- Parameters ------------------------------- const DualMiner& rhs The right hand side

--------------------------------- Return --------------------------------- A reference to the Miner

double DualMiner::scoreLevel ( unsigned int  level,
unsigned int  bot,
unsigned int  top,
const PatternBounder pb 
) const [protected, virtual]

Assigns a score to a level

------------------------------- Parameters ------------------------------- unsigned int level The current level

--------------------------------- Return --------------------------------- Whether or not we should continue (whether or not any matches were found)


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