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.
Public Functions
Initializes exact survivor functor.
- Parameters
- _qmatrix -
Partitioned matrix with open states in top left corner.
- _tau -
Missed event cutoff time.
template < class T >Initializes exact survivor functor.
- Parameters
- _qmatrix -
A transition matrix with open states in top left corner
- _nopen -
Number of open states.
- _tau -
Missed event cutoff time.
ExactSurvivor(ExactSurvivor && _c)Move constructor.
Sets the values for which to compute exact g.
Probability of no shut times detected between 0 and t.
Probability of no open times detected between 0 and t.
t_real get_tau()Gets the value of tau;.
Returns recursion matrix for af.
Returns recursion matrix for af.
Returns Di matrix for af.
Returns Di matrix for af.
t_rvector eigenvalues_af()Returns eigenvalues for af matrix.
t_rvector eigenvalues_fa()Returns eigenvalues for fa matrix.
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 TypePublic Functionstypedef t_rmatrix t_element
Element on which to perform recursion.
Constructor.
- Parameters
- _qmatrix -
The transition state matrix for which to compute \(^eR_{AF}(t\rightarrow\infty)\)
- _tau -
Maximum length of missed events
- _doAF -
Whether to do AF (true) or FA
Recursion element i, m, l.
Returns D values.
Returns i \(^{th}\) eigenvalue.
t_uint nbeigvals()Returns the number of eigenvalues.
t_rvector const & eigenvalues()Reference to eigenvalues.
decltype(t_rmatrix::Zero(1, 1)) zero()A null matrix of appropriate size.