pub struct ParamSpace {
pub bounds: HashMap<String, (f64, f64)>,
pub samples_per_dim: usize,
pub use_lhs: bool,
}Expand description
Parameter space for falsification search.
Fields§
§bounds: HashMap<String, (f64, f64)>Parameter bounds: name -> (min, max)
samples_per_dim: usizeNumber of samples per dimension
use_lhs: boolWhether to use Latin Hypercube Sampling
Implementations§
Source§impl ParamSpace
impl ParamSpace
Sourcepub fn with_param(self, name: &str, min: f64, max: f64) -> Self
pub fn with_param(self, name: &str, min: f64, max: f64) -> Self
Add a parameter with bounds.
Sourcepub fn with_samples(self, n: usize) -> Self
pub fn with_samples(self, n: usize) -> Self
Set samples per dimension.
Trait Implementations§
Source§impl Clone for ParamSpace
impl Clone for ParamSpace
Source§fn clone(&self) -> ParamSpace
fn clone(&self) -> ParamSpace
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 ParamSpace
impl Debug for ParamSpace
Auto Trait Implementations§
impl Freeze for ParamSpace
impl RefUnwindSafe for ParamSpace
impl Send for ParamSpace
impl Sync for ParamSpace
impl Unpin for ParamSpace
impl UnsafeUnpin for ParamSpace
impl UnwindSafe for ParamSpace
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