cMHN 1.0
C++ library for learning MHNs with pRC
Public Member Functions | List of all members
cMHN::KLScore< T > Class Template Reference

Class storing a KL Score, specializes the Score class. More...

#include <score.hpp>

Inheritance diagram for cMHN::KLScore< T >:
cMHN::Score< T >

Public Member Functions

 ~KLScore ()=default
 
 KLScore (KLScore const &)=default
 
 KLScore (KLScore &&)=default
 
KLScoreoperator= (KLScore const &) &=default
 
KLScoreoperator= (KLScore &&) &=default
 
 KLScore ()
 
- Public Member Functions inherited from cMHN::Score< T >
 ~Score ()=default
 
 Score (Score const &)=default
 
 Score (Score &&)=default
 
Scoreoperator= (Score const &) &=default
 
Scoreoperator= (Score &&) &=default
 
 Score ()=delete
 
 Score (auto const &pointwiseScore, auto const &pointwiseDSDP, auto const &name)
 
auto pointwiseScore (T const &pDE, T const &pThetaE) const
 
auto pointwiseDSDP (T const &pDE, T const &pThetaE) const
 
auto name () const
 

Detailed Description

template<class T>
class cMHN::KLScore< T >

Class storing a KL Score, specializes the Score class.

This score calculates the pointwise KL Score, i.e. pointwiseScore(pDE, pThetaE) = pDE * log(pThetaE).

Note that none of the functions (pointwiseScore, pointwiseDSDP) can be changed.

Template Parameters
Ttype used for calculations

Constructor & Destructor Documentation

◆ ~KLScore()

template<class T >
cMHN::KLScore< T >::~KLScore ( )
default

◆ KLScore() [1/3]

template<class T >
cMHN::KLScore< T >::KLScore ( KLScore< T > const &  )
default

◆ KLScore() [2/3]

template<class T >
cMHN::KLScore< T >::KLScore ( KLScore< T > &&  )
default

◆ KLScore() [3/3]

template<class T >
cMHN::KLScore< T >::KLScore ( )
inlineexplicit

Member Function Documentation

◆ operator=() [1/2]

template<class T >
KLScore & cMHN::KLScore< T >::operator= ( KLScore< T > &&  ) &
default

◆ operator=() [2/2]

template<class T >
KLScore & cMHN::KLScore< T >::operator= ( KLScore< T > const &  ) &
default

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