dai::fo_KL< T > Struct Template Reference

Function object useful for calculating the KL distance. More...

#include <dai/prob.h>

List of all members.

Public Member Functions

operator() (const T &p, const T &q) const
 Returns (p == 0 ? 0 : (p * (log(p) - log(q)))).


Detailed Description

template<typename T>
struct dai::fo_KL< T >

Function object useful for calculating the KL distance.

Member Function Documentation

template<typename T>
T dai::fo_KL< T >::operator() ( const T &  p,
const T &  q 
) const [inline]

Returns (p == 0 ? 0 : (p * (log(p) - log(q)))).


The documentation for this struct was generated from the following file:

Generated on Thu Aug 5 19:04:07 2010 for libDAI by  doxygen 1.5.5