ExactSurvivor¶
-
class ExactSurvivor¶
Implementation of recursion for exact missed-event survivor function.
Implements the exact-missed event probability calculations, as detailed in Hawkes, Jalali, and Colquhoun (1990). Specifically, this is equation 3.2.
Subclassed by HJCFIT::MissedEventsG
Public Functions
-
inline ExactSurvivor(QMatrix const &_qmatrix, t_real _tau)¶
Initializes exact survivor functor.
- Parameters:
_qmatrix – [in] Partitioned matrix with open states in top left corner.
_tau – [in] Missed event cutoff time.
-
template<class T>
inline ExactSurvivor(Eigen::DenseBase<T> const &_qmatrix, t_uint _nopen, t_real _tau)¶ Initializes exact survivor functor.
- Parameters:
_qmatrix – [in] A transition matrix with open states in top left corner
_nopen – [in] Number of open states.
_tau – [in] Missed event cutoff time.
-
inline ExactSurvivor(ExactSurvivor &&_c)¶
Move constructor.
-
t_stack_rmatrix af(t_real t) const¶
Probability of no shut times detected between 0 and t.
-
t_stack_rmatrix fa(t_real t) const¶
Probability of no open times detected between 0 and t.
-
t_stack_rmatrix recursion_af(t_uint _i, t_uint _m, t_uint _l) const¶
Returns recursion matrix for af.
-
t_stack_rmatrix recursion_fa(t_uint _i, t_uint _m, t_uint _l) const¶
Returns recursion matrix for af.
-
t_stack_rmatrix D_af(t_uint _i) const¶
Returns Di matrix for af.
-
t_stack_rmatrix D_fa(t_uint _i) const¶
Returns Di matrix for af.
-
ExactSurvivor &operator=(ExactSurvivor &&_c)¶
Move assignment.
-
class RecursionInterface¶
Implementation of recursion for exact missed-event Survivor function.
This is an interface to the function recursion_formula. In practice, this object needs not be called directly. Rather the public interface (which is about computing the likelihood for an event of duration t) is in the containing class ExactSurvivor.
Public Types
-
typedef t_stack_rmatrix t_element¶
Element on which to perform recursion.
Public Functions
-
RecursionInterface(QMatrix const &_qmatrix, t_real _tau, bool _doAF = true)¶
Constructor.
- Parameters:
_qmatrix – [in] The transition state matrix for which to compute \(^eR_{AF}(t\rightarrow\infty)\)
_tau – [in] Maximum length of missed events
_doAF – [in] Whether to do AF (true) or FA
-
inline decltype(t_stack_rmatrix::Zero(1, 1)) zero() const¶
A null matrix of appropriate size.
-
typedef t_stack_rmatrix t_element¶
-
inline ExactSurvivor(QMatrix const &_qmatrix, t_real _tau)¶