|
|
@ -5,6 +5,7 @@ use ndarray::prelude::*; |
|
|
|
use crate::sampling::{ForwardSampler, Sampler}; |
|
|
|
use crate::sampling::{ForwardSampler, Sampler}; |
|
|
|
use crate::{params, process}; |
|
|
|
use crate::{params, process}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Clone)] |
|
|
|
pub struct Trajectory { |
|
|
|
pub struct Trajectory { |
|
|
|
time: Array1<f64>, |
|
|
|
time: Array1<f64>, |
|
|
|
events: Array2<usize>, |
|
|
|
events: Array2<usize>, |
|
|
@ -29,6 +30,7 @@ impl Trajectory { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Clone)] |
|
|
|
pub struct Dataset { |
|
|
|
pub struct Dataset { |
|
|
|
trajectories: Vec<Trajectory>, |
|
|
|
trajectories: Vec<Trajectory>, |
|
|
|
} |
|
|
|
} |
|
|
|