| Biorithm
    1.1
    | 
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>
 
  
 | 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 DualMiner & | operator= (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 | |
| BSEvaluator * | bse | 
| int | mode | 
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.
| 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
------------------------------- 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 | ) | 
| DualMiner::~DualMiner | ( | ) |  [virtual] | 
Destructor
| 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
| 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)
 1.7.6.1
 1.7.6.1