![]() |
aGrUM
0.20.3
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_ |
Size | errorPQ_ |
Size | errorQP_ |
GUM_SCALAR | hellinger_ |
GUM_SCALAR | bhattacharya_ |
GUM_SCALAR | jsd_ |
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 63 of file BNdistance_tpl.h.
|
private |
Definition at line 126 of file BNdistance_tpl.h.
INLINE double gum::BNdistance< GUM_SCALAR >::bhattacharya | ( | ) |
|
protectedvirtual |
Reimplemented in gum::GibbsBNdistance< GUM_SCALAR >, and gum::ExactBNdistance< GUM_SCALAR >.
Definition at line 184 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 68 of file BNdistance_tpl.h.
INLINE Size gum::BNdistance< GUM_SCALAR >::errorPQ | ( | ) |
Definition at line 103 of file BNdistance_tpl.h.
INLINE Size gum::BNdistance< GUM_SCALAR >::errorQP | ( | ) |
Definition at line 109 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 175 of file BNdistance_tpl.h.
INLINE const IBayesNet< GUM_SCALAR > & gum::BNdistance< GUM_SCALAR >::q | ( | ) | const |
|
private |
Definition at line 156 of file BNdistance.h.
|
private |
Definition at line 157 of file BNdistance.h.
|
protected |
Definition at line 151 of file BNdistance.h.
|
protected |
Definition at line 147 of file BNdistance.h.
|
protected |
Definition at line 148 of file BNdistance.h.
|
protected |
Definition at line 150 of file BNdistance.h.
|
protected |
Definition at line 152 of file BNdistance.h.
|
protected |
Definition at line 144 of file BNdistance.h.
|
protected |
Definition at line 145 of file BNdistance.h.
|
protected |
Definition at line 141 of file BNdistance.h.
|
protected |
Definition at line 142 of file BNdistance.h.