![]() |
aGrUM
0.20.2
a C++ library for (probabilistic) graphical models
|
#include <BNdistance.h>
Public Member Functions | |
BNdistance (const IBayesNet< GUM_SCALAR > &P, const IBayesNet< GUM_SCALAR > &Q) | |
constructor must give 2 BNs More... | |
BNdistance (const BNdistance< GUM_SCALAR > &kl) | |
copy constructor More... | |
virtual | ~BNdistance () |
destructor More... | |
Complexity | difficulty () const |
return KL::Complexity::Heavy,KL::Complexity::Difficult,KL::Complexity::Correct depending on the BNs p__ and q__ More... | |
Accessors to results. The first call do the computations. The | |
others do not. | |
double | klPQ () |
Size | errorPQ () |
double | klQP () |
Size | errorQP () |
double | hellinger () |
double | bhattacharya () |
double | jsd () |
const IBayesNet< GUM_SCALAR > & | p () const |
const IBayesNet< GUM_SCALAR > & | q () const |
Protected Attributes | |
const IBayesNet< GUM_SCALAR > & | p_ |
const IBayesNet< GUM_SCALAR > & | q_ |
GUM_SCALAR | klPQ_ |
GUM_SCALAR | klQP_ |
GUM_SCALAR | hellinger_ |
GUM_SCALAR | bhattacharya_ |
GUM_SCALAR | jsd_ |
Size | errorPQ_ |
Size | errorQP_ |
Protected Member Functions | |
virtual void | computeKL_ () |
void | process_ () |
Definition at line 72 of file BNdistance.h.
gum::BNdistance< GUM_SCALAR >::BNdistance | ( | const IBayesNet< GUM_SCALAR > & | P, |
const IBayesNet< GUM_SCALAR > & | Q | ||
) |
constructor must give 2 BNs
gum::OperationNotAllowed | if the 2 BNs have not the same domainSize or compatible node sets. |
Definition at line 37 of file BNdistance_tpl.h.
gum::BNdistance< GUM_SCALAR >::BNdistance | ( | const BNdistance< GUM_SCALAR > & | kl | ) |
copy constructor
Definition at line 56 of file BNdistance_tpl.h.
|
virtual |
destructor
Definition at line 64 of file BNdistance_tpl.h.
INLINE double gum::BNdistance< GUM_SCALAR >::bhattacharya | ( | ) |
|
private |
Definition at line 127 of file BNdistance_tpl.h.
|
protectedvirtual |
Reimplemented in gum::GibbsBNdistance< GUM_SCALAR >, and gum::ExactBNdistance< GUM_SCALAR >.
Definition at line 186 of file BNdistance_tpl.h.
Complexity gum::BNdistance< GUM_SCALAR >::difficulty | ( | ) | const |
return KL::Complexity::Heavy,KL::Complexity::Difficult,KL::Complexity::Correct depending on the BNs p__ and q__
Definition at line 69 of file BNdistance_tpl.h.
INLINE Size gum::BNdistance< GUM_SCALAR >::errorPQ | ( | ) |
Definition at line 104 of file BNdistance_tpl.h.
INLINE Size gum::BNdistance< GUM_SCALAR >::errorQP | ( | ) |
Definition at line 110 of file BNdistance_tpl.h.
INLINE double gum::BNdistance< GUM_SCALAR >::hellinger | ( | ) |
INLINE double gum::BNdistance< GUM_SCALAR >::jsd | ( | ) |
INLINE double gum::BNdistance< GUM_SCALAR >::klPQ | ( | ) |
INLINE double gum::BNdistance< GUM_SCALAR >::klQP | ( | ) |
INLINE const IBayesNet< GUM_SCALAR > & gum::BNdistance< GUM_SCALAR >::p | ( | ) | const |
|
protected |
Definition at line 177 of file BNdistance_tpl.h.
INLINE const IBayesNet< GUM_SCALAR > & gum::BNdistance< GUM_SCALAR >::q | ( | ) | const |
|
protected |
Definition at line 146 of file BNdistance.h.
|
private |
Definition at line 154 of file BNdistance.h.
|
private |
Definition at line 155 of file BNdistance.h.
|
protected |
Definition at line 149 of file BNdistance.h.
|
protected |
Definition at line 150 of file BNdistance.h.
|
protected |
Definition at line 145 of file BNdistance.h.
|
protected |
Definition at line 147 of file BNdistance.h.
|
protected |
Definition at line 143 of file BNdistance.h.
|
protected |
Definition at line 144 of file BNdistance.h.
|
protected |
Definition at line 140 of file BNdistance.h.
|
protected |
Definition at line 141 of file BNdistance.h.