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

Class storing an MHN operator represented by a theta matrix (for non 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 ()
 

Detailed Description

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

Class storing an MHN operator represented by a theta matrix (for non 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::nonTT::MHNOperator< T, D >::Type = T

Constructor & Destructor Documentation

◆ MHNOperator()

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

Member Function Documentation

◆ theta() [1/3]

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

◆ theta() [2/3]

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

◆ theta() [3/3]

template<class T , pRC::Size D>
constexpr auto & cMHN::nonTT::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: