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

Class storing an MHN operator represented by a theta matrix (for TT calculations) More...

#include <mhn_operator.hpp>

Public Types

using Type = T
 

Public Member Functions

constexpr MHNOperator (pRC::Tensor< T, D, D > const &theta)
 
constexpr auto & theta (pRC::Index const i, pRC::Index const j) const
 
constexpr auto & theta () const
 
auto & theta ()
 
constexpr auto term (pRC::Index const i) const
 
template<pRC::Index i>
constexpr auto core () const
 
constexpr auto derivative (pRC::Index const i, pRC::Index const j) const
 

Detailed Description

template<class T, pRC::Size D>
class cMHN::TT::MHNOperator< T, D >

Class storing an MHN operator represented by a theta matrix (for TT calculations)

The class internally stores the actual transition rate modifiers (usually denoted Theta), but is initialized from the logarithmic rate modifiers (usually denoted theta), their relation is Theta = exp(theta).

Template Parameters
Ttype used for calculations (usually pRC::Float<>)
Dnumber of events of the dataset

Member Typedef Documentation

◆ Type

template<class T , pRC::Size D>
using cMHN::TT::MHNOperator< T, D >::Type = T

Constructor & Destructor Documentation

◆ MHNOperator()

template<class T , pRC::Size D>
constexpr cMHN::TT::MHNOperator< T, D >::MHNOperator ( pRC::Tensor< T, D, D > const &  theta)
inlineconstexpr

Member Function Documentation

◆ core()

template<class T , pRC::Size D>
template<pRC::Index i>
constexpr auto cMHN::TT::MHNOperator< T, D >::core ( ) const
inlineconstexpr

◆ derivative()

template<class T , pRC::Size D>
constexpr auto cMHN::TT::MHNOperator< T, D >::derivative ( pRC::Index const  i,
pRC::Index const  j 
) const
inlineconstexpr

◆ term()

template<class T , pRC::Size D>
constexpr auto cMHN::TT::MHNOperator< T, D >::term ( pRC::Index const  i) const
inlineconstexpr

◆ theta() [1/3]

template<class T , pRC::Size D>
auto & cMHN::TT::MHNOperator< T, D >::theta ( )
inline

◆ theta() [2/3]

template<class T , pRC::Size D>
constexpr auto & cMHN::TT::MHNOperator< T, D >::theta ( ) const
inlineconstexpr

◆ theta() [3/3]

template<class T , pRC::Size D>
constexpr auto & cMHN::TT::MHNOperator< T, D >::theta ( pRC::Index const  i,
pRC::Index const  j 
) const
inlineconstexpr

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