pub struct SimulationConfig {
pub n_events: usize,
pub n_channels: usize,
pub causal_window: usize,
pub tau_steps: usize,
pub shock_start: usize,
pub shock_end: usize,
pub beta: f64,
pub envelope_decay: f64,
}Fields§
§n_events: usize§n_channels: usize§causal_window: usize§tau_steps: usize§shock_start: usize§shock_end: usize§beta: f64§envelope_decay: f64Implementations§
Source§impl SimulationConfig
impl SimulationConfig
pub fn validate(&self) -> Result<(), String>
pub fn from_args<I, S>(args: I) -> Result<Self, String>
pub fn usage(program: &str) -> String
pub fn tau_thresholds(&self) -> Vec<f64>
pub fn scaled_for_n_events(&self, n_events: usize) -> Self
pub fn canonical_json(&self) -> String
pub fn config_hash(&self) -> String
pub fn repo_root() -> PathBuf
pub fn output_root() -> PathBuf
Trait Implementations§
Source§impl Clone for SimulationConfig
impl Clone for SimulationConfig
Source§fn clone(&self) -> SimulationConfig
fn clone(&self) -> SimulationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimulationConfig
impl Debug for SimulationConfig
Auto Trait Implementations§
impl Freeze for SimulationConfig
impl RefUnwindSafe for SimulationConfig
impl Send for SimulationConfig
impl Sync for SimulationConfig
impl Unpin for SimulationConfig
impl UnsafeUnpin for SimulationConfig
impl UnwindSafe for SimulationConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more