libDAI
Public Member Functions | List of all members
dai::fo_KL< T > Struct Template Reference

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

#include <dai/prob.h>

Inherits binary_function< T, T, T >.

Public Member Functions

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

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: