Biorithm  1.1
Public Member Functions | Protected Member Functions | Protected Attributes
TopKMiner 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 <TopKMiner.h>

Inheritance diagram for TopKMiner:
LatticeMiner Miner Monitorable

List of all members.

Public Member Functions

 TopKMiner (float balance=0.5, float support=1.0, unsigned int k=1, unsigned int size=100, unsigned int buffer_size=1000, bool positive=false, BinaryMatrix *tm=NULL, int mode=MODE_TOPK_NULL)
 TopKMiner (const TopKMiner &src)
virtual ~TopKMiner ()
virtual TopKMineroperator= (const TopKMiner &rhs)

Protected Member Functions

virtual void analyzeHelper ()
virtual unsigned int analyzeLevel (unsigned int level)
virtual void handlePrinting (unsigned int level)
virtual void analyzeTopKNull ()
virtual void analyzeTopKNormal ()

Protected Attributes

BSEvaluatorbse
unsigned int k
unsigned int size
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

TopKMiner::TopKMiner ( float  balance = 0.5,
float  support = 1.0,
unsigned int  k = 1,
unsigned int  size = 100,
unsigned int  buffer_size = 1000,
bool  positive = false,
BinaryMatrix bm = NULL,
int  mode = MODE_TOPK_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

TopKMiner::TopKMiner ( const TopKMiner src)

The copy constructor

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

TopKMiner::~TopKMiner ( ) [virtual]

Destructor


Member Function Documentation

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

Analyzes the matrix, one level at a time

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

Implements Miner.

unsigned int TopKMiner::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 TopKMiner::analyzeTopKNormal ( ) [protected, virtual]

Analyzes with paying attention to how many are at each level

void TopKMiner::analyzeTopKNull ( ) [protected, virtual]

Analyzes without paying attention to how many are at each level

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

Handle printing

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

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

The = operator

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

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


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