![]() |
aGrUM 3.2.0
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. | |
| FrequenceSearch (const FrequenceSearch &from) | |
| Copy constructor. | |
| ~FrequenceSearch () override | |
| Destructor. | |
| FrequenceSearch & | operator= (const FrequenceSearch &from) |
| Copy operator. | |
Search methods. | |
| bool | accept_root (const Pattern *r) override |
| bool | accept_growth (const Pattern *parent, const Pattern *child, const EdgeGrowth< GUM_SCALAR > &growth) override |
| bool | operator() (LabelData *i, LabelData *j) override |
| bool | operator() (Pattern *i, Pattern *j) override |
Search methods. | |
| void | setTree (DFSTree< GUM_SCALAR > *tree) |
Protected Member Functions | |
| double | computeCost_ (const Pattern &p) |
Protected Attributes | |
| DFSTree< GUM_SCALAR > * | tree_ |
Private Attributes | |
| Size | _freq_ |
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 133 of file searchStrategy.h.
|
explicit |
Default constructor.
Definition at line 244 of file searchStrategy_tpl.h.
References FrequenceSearch(), gum::prm::gspan::SearchStrategy< GUM_SCALAR >::SearchStrategy(), and _freq_.
Referenced by gum::prm::gspan::DFSTree< GUM_SCALAR >::DFSTree(), FrequenceSearch(), FrequenceSearch(), ~FrequenceSearch(), and operator=().
| gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::FrequenceSearch | ( | const FrequenceSearch< GUM_SCALAR > & | from | ) |
Copy constructor.
Definition at line 250 of file searchStrategy_tpl.h.
References FrequenceSearch(), gum::prm::gspan::SearchStrategy< GUM_SCALAR >::SearchStrategy(), and _freq_.
|
override |
Destructor.
Definition at line 256 of file searchStrategy_tpl.h.
References FrequenceSearch().
|
overridevirtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 273 of file searchStrategy_tpl.h.
References _freq_, and gum::prm::gspan::SearchStrategy< GUM_SCALAR >::tree_.
|
overridevirtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 268 of file searchStrategy_tpl.h.
References _freq_, and gum::prm::gspan::SearchStrategy< GUM_SCALAR >::tree_.
|
protectedinherited |
Definition at line 57 of file searchStrategy_tpl.h.
References gum::SequenceImplementation< Key, Gen >::exists(), gum::SequenceImplementation< Key, Gen >::insert(), and tree_.
Referenced by gum::prm::gspan::StrictSearch< GUM_SCALAR >::_compute_costs_(), and gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::cost().
|
overridevirtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 286 of file searchStrategy_tpl.h.
References gum::prm::gspan::SearchStrategy< GUM_SCALAR >::tree_.
|
overridevirtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 280 of file searchStrategy_tpl.h.
References gum::prm::gspan::SearchStrategy< GUM_SCALAR >::tree_.
| FrequenceSearch< GUM_SCALAR > & gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::operator= | ( | const FrequenceSearch< GUM_SCALAR > & | from | ) |
Copy operator.
Definition at line 262 of file searchStrategy_tpl.h.
References FrequenceSearch(), and _freq_.
|
inherited |
Definition at line 236 of file searchStrategy_tpl.h.
References tree_.
Referenced by operator=().
|
private |
Definition at line 169 of file searchStrategy.h.
Referenced by FrequenceSearch(), FrequenceSearch(), accept_growth(), accept_root(), and operator=().
|
protectedinherited |
Definition at line 119 of file searchStrategy.h.
Referenced by SearchStrategy(), SearchStrategy(), 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(), computeCost_(), gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::operator()(), gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::operator()(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::operator()(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::operator()(), and setTree().