1
0
Fork 0
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
PyCTBN/main_package/classes/trajectory.py

17 lines
414 B

import pandas as pd
import numpy as np
class Trajectory():
def __init__(self, data_frame):
self.actual_trajectory = data_frame
def get_trajectory(self):
return self.actual_trajectory
def get_trajectory_as_matrix(self):
return self.actual_trajectory[['Time','State']].to_numpy()
def get_states(self):
return self.actual_trajectory['State'].unique()