Biorithm
1.1
|
The standard KK bounder. More...
#include <PatternBounder.h>
Public Member Functions | |
KKBounder () | |
KKBounder (const KKBounder &src) | |
virtual | ~KKBounder () |
virtual KKBounder & | operator= (const KKBounder &rhs) |
virtual double | getUpperBound (const Lattice *lattice, unsigned int curlevel, unsigned int nextlevel) const |
virtual double | getLowerBound (const Lattice *lattice, unsigned int curlevel, unsigned int nextlevel) const |
Protected Member Functions | |
virtual double | kcanonical (unsigned int n, unsigned int k, vector< unsigned int > &ms, unsigned int &start) const |
virtual double | kkUpperBound (unsigned int number, unsigned int curlevel, unsigned int nextlevel) const |
virtual double | kkLowerBound (unsigned int number, unsigned int curlevel, unsigned int nextlevel) const |
The standard KK bounder.
PatternBounder.cpp The pattern bounder. Contains several varieties of pattern bounders.
KKBounder::KKBounder | ( | const KKBounder & | src | ) |
The copy constructor
------------------------------- Parameters ------------------------------- const KKBounder& src The source Bounder
KKBounder::~KKBounder | ( | ) | [virtual] |
Destructor
double KKBounder::getLowerBound | ( | const Lattice * | lattice, |
unsigned int | curlevel, | ||
unsigned int | nextlevel | ||
) | const [virtual] |
Upperbounds the number of patterns at a given level
------------------------------- Parameters ------------------------------- const Lattice* lattice The lattice unsigned int curlevel The level we know unsigned int nextlevel The level that we are trying to bound
--------------------------------- Return --------------------------------- A reference to the bounder
Implements PatternBounder.
Reimplemented in ImprovedBounder.
double KKBounder::getUpperBound | ( | const Lattice * | lattice, |
unsigned int | curlevel, | ||
unsigned int | nextlevel | ||
) | const [virtual] |
Upperbounds the number of patterns at a given level
------------------------------- Parameters ------------------------------- const Lattice* lattice The lattice unsigned int curlevel The level we know unsigned int nextlevel The level that we are trying to bound
--------------------------------- Return --------------------------------- A reference to the bounder
Implements PatternBounder.
Reimplemented in ImprovedBounder.
double KKBounder::kcanonical | ( | unsigned int | n, |
unsigned int | k, | ||
vector< unsigned int > & | ms, | ||
unsigned int & | start | ||
) | const [protected, virtual] |
Gets the kcanonical representation of the number
------------------------------- Parameters ------------------------------- unsigned int n n unsigned int k k vector<unsigned int> ms The ms
double KKBounder::kkLowerBound | ( | unsigned int | number, |
unsigned int | curlevel, | ||
unsigned int | nextlevel | ||
) | const [protected, virtual] |
Upperbounds the number of patterns at a given level
------------------------------- Parameters ------------------------------- const Lattice* lattice The lattice unsigned int curlevel The level we know unsigned int nextlevel The level that we are trying to bound
--------------------------------- Return --------------------------------- A reference to the bounder
double KKBounder::kkUpperBound | ( | unsigned int | number, |
unsigned int | curlevel, | ||
unsigned int | nextlevel | ||
) | const [protected, virtual] |
Upperbounds the number of patterns at a given level
------------------------------- Parameters ------------------------------- const Lattice* lattice The lattice unsigned int curlevel The level we know unsigned int nextlevel The level that we are trying to bound
--------------------------------- Return --------------------------------- A reference to the bounder
Upper bounds the number of candidates at this level
------------------------------- Parameters ------------------------------- const KKBounder& rhs The right hand side
--------------------------------- Return --------------------------------- A reference to the bounder