PyCTBN.PyCTBN.structure_graph package¶
Submodules¶
PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module¶
- class PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix(state_residence_times: Optional[numpy.array] = None, state_transition_matrix: Optional[numpy.array] = None, cim: Optional[numpy.array] = None)¶
Bases:
object
Abstracts the Conditional Intesity matrix of a node as aggregation of the state residence times vector and state transition matrix and the actual CIM matrix.
- Parameters
state_residence_times (numpy.array) – state residence times vector
state_transition_matrix (numpy.ndArray) – the transitions count matrix
- _cim
the actual cim of the node
- property cim: numpy.ndarray¶
- compute_cim_coefficients() → None¶
Compute the coefficients of the matrix _cim by using the following equality q_xx’ = M[x, x’] / T[x]. The class member
_cim
will contain the computed cim
- property state_residence_times: numpy.ndarray¶
- property state_transition_matrix: numpy.ndarray¶