1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/*! * Traits and some base structs for use with n-dimensional processes. */ use ndarray::prelude::*; pub struct Domain { pub close: Array1<f64>, pub far: Array1<f64> } impl Domain { pub fn new(close: Array1<f64>, far: Array1<f64>) -> Domain { Domain { close, far } } }