ExactSurvivor¶
-
class
DCProgs::
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 DCProgs::MissedEventsG
Public Functions
-
ExactSurvivor
(QMatrix const &_qmatrix, t_real _tau)¶ Initializes exact survivor functor.
- Parameters
_qmatrix
-Partitioned matrix with open states in top left corner.
_tau
-Missed event cutoff time.
- template <class T>
-
ExactSurvivor
(Eigen::DenseBase<T> const &_qmatrix, t_uint _nopen, t_real _tau)¶ 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.
-
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 Functions
-
RecursionInterface
(QMatrix const &_qmatrix, t_real _tau, bool _doAF = true)¶ 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
-
ExactSurvivor::RecursionInterface::t_element
operator()
(t_uint _i, t_uint _m, t_uint _l)¶ Recursion element i, m, l.
-
decltype(t_rmatrix::Zero(1,1)) DCProgs::ExactSurvivor::RecursionInterface::zero()
const A null matrix of appropriate size.
-
-