use ndarray::prelude::*; use crate::network; use petgraph::prelude::*; use rand::Rng; pub struct Trajectory { time: Array1, events: Array2 } pub struct Dataset { trajectories: Vec } fn trajectory_generator(net: &Box, n_trajectories: u64, t_end: f64) -> Dataset { let mut dataset = Dataset{ trajectories: Vec::new() }; for _ in 0..n_trajectories { let mut rng = rand::thread_rng(); let t = 0.0; let mut time: Vec = Vec::new(); let mut events: Vec> = Vec::new(); let current_state: Vec = net.get_node_indices().map(|x| rng.gen_range(0..2)).collect(); } dataset }