![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
This is class is an implementation of a simple serach strategy for the gspan algorithm: it accept a growth if its frequency is above a user defined value. More...
#include <agrum/PRM/gspan/DFSTree.h>
Public Member Functions | |
Constructor and destructor. | |
FrequenceSearch (Size freq) | |
Default constructor. More... | |
FrequenceSearch (const FrequenceSearch &from) | |
Copy constructor. More... | |
virtual | ~FrequenceSearch () |
Destructor. More... | |
FrequenceSearch & | operator= (const FrequenceSearch &from) |
Copy operator. More... | |
Search methods. | |
virtual bool | accept_root (const Pattern *r) |
virtual bool | accept_growth (const Pattern *parent, const Pattern *child, const EdgeGrowth< GUM_SCALAR > &growth) |
virtual bool | operator() (LabelData *i, LabelData *j) |
virtual bool | operator() (Pattern *i, Pattern *j) |
Search methods. | |
void | setTree (DFSTree< GUM_SCALAR > *tree) |
Protected Attributes | |
DFSTree< GUM_SCALAR > * | tree_ |
Protected Member Functions | |
double | computeCost_ (const Pattern &p) |
This is class is an implementation of a simple serach strategy for the gspan algorithm: it accept a growth if its frequency is above a user defined value.
Definition at line 125 of file searchStrategy.h.
|
explicit |
Default constructor.
Definition at line 227 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
INLINE gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::FrequenceSearch | ( | const FrequenceSearch< GUM_SCALAR > & | from | ) |
Copy constructor.
Definition at line 234 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Destructor.
Definition at line 241 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 259 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 253 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
protectedinherited |
Definition at line 35 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 272 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 266 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
INLINE FrequenceSearch< GUM_SCALAR > & gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::operator= | ( | const FrequenceSearch< GUM_SCALAR > & | from | ) |
Copy operator.
Definition at line 247 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
inherited |
Definition at line 219 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 161 of file searchStrategy.h.
|
protectedinherited |
Definition at line 111 of file searchStrategy.h.