Old engine for Continuous Time Bayesian Networks. Superseded by reCTBN. 🐍
https://github.com/madlabunimib/PyCTBN
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
294 B
9 lines
294 B
4 years ago
|
import numpy as np
|
||
|
|
||
|
|
||
|
class ConditionalIntensityMatrix:
|
||
|
|
||
|
def __init__(self, dimension):
|
||
|
self.state_residence_times = np.zeros(shape=(1, dimension))
|
||
|
self.state_transition_matrix = np.zeros(shape=(dimension, dimension))
|
||
|
self.cim = np.zeros(shape=(dimension, dimension))
|