![]() |
aGrUM
0.16.0
|
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 126 of file searchStrategy.h.
|
explicit |
Default constructor.
Definition at line 241 of file searchStrategy_tpl.h.
INLINE gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::FrequenceSearch | ( | const FrequenceSearch< GUM_SCALAR > & | from | ) |
Copy constructor.
Definition at line 247 of file searchStrategy_tpl.h.
|
virtual |
Destructor.
Definition at line 255 of file searchStrategy_tpl.h.
References gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::operator=().
|
protectedinherited |
Definition at line 36 of file searchStrategy_tpl.h.
References gum::SequenceImplementation< Key, Alloc, std::is_scalar< Key >::value >::exists(), and gum::SequenceImplementation< Key, Alloc, std::is_scalar< Key >::value >::insert().
Referenced by gum::prm::gspan::StrictSearch< GUM_SCALAR >::__compute_costs(), and gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::cost().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 272 of file searchStrategy_tpl.h.
References gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::__freq, and gum::prm::gspan::SearchStrategy< GUM_SCALAR >::_tree.
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 267 of file searchStrategy_tpl.h.
References gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::__freq, and gum::prm::gspan::SearchStrategy< GUM_SCALAR >::_tree.
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 287 of file searchStrategy_tpl.h.
References gum::prm::gspan::SearchStrategy< GUM_SCALAR >::_tree.
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 280 of file searchStrategy_tpl.h.
References gum::prm::gspan::SearchStrategy< GUM_SCALAR >::_tree.
INLINE FrequenceSearch< GUM_SCALAR > & gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::operator= | ( | const FrequenceSearch< GUM_SCALAR > & | from | ) |
Copy operator.
Definition at line 261 of file searchStrategy_tpl.h.
References gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::__freq.
Referenced by gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::~FrequenceSearch().
|
inherited |
Definition at line 233 of file searchStrategy_tpl.h.
References gum::prm::gspan::SearchStrategy< GUM_SCALAR >::_tree.
|
private |
Definition at line 162 of file searchStrategy.h.
Referenced by gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::accept_growth(), gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::accept_root(), and gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::operator=().
|
protectedinherited |
Definition at line 112 of file searchStrategy.h.
Referenced by gum::prm::gspan::StrictSearch< GUM_SCALAR >::__compute_costs(), gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::accept_growth(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::accept_growth(), gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::accept_root(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::accept_root(), gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::operator()(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::operator()(), gum::prm::gspan::SearchStrategy< GUM_SCALAR >::operator=(), and gum::prm::gspan::SearchStrategy< GUM_SCALAR >::setTree().