pub struct AdaptiveStepConfig {
pub pass_threshold: f64,
pub fail_threshold: f64,
pub time_budget_secs: f64,
pub max_samples: usize,
pub theta_ns: f64,
pub seed: u64,
pub quality_gates: QualityGateConfig,
}Expand description
Configuration for the adaptive step (no_std compatible).
Uses f64 for time values instead of std::time::Duration.
Fields§
§pass_threshold: f64Threshold below which we pass (no significant leak).
fail_threshold: f64Threshold above which we fail (leak detected).
time_budget_secs: f64Time budget in seconds.
max_samples: usizeMaximum samples per class.
theta_ns: f64Effect threshold (theta) in nanoseconds.
seed: u64Random seed for Monte Carlo integration.
quality_gates: QualityGateConfigQuality gate configuration.
Implementations§
Source§impl AdaptiveStepConfig
impl AdaptiveStepConfig
Sourcepub fn with_theta(theta_ns: f64) -> Self
pub fn with_theta(theta_ns: f64) -> Self
Create a new config with the given theta threshold.
Sourcepub fn pass_threshold(self, threshold: f64) -> Self
pub fn pass_threshold(self, threshold: f64) -> Self
Builder method to set pass threshold.
Sourcepub fn fail_threshold(self, threshold: f64) -> Self
pub fn fail_threshold(self, threshold: f64) -> Self
Builder method to set fail threshold.
Sourcepub fn time_budget_secs(self, secs: f64) -> Self
pub fn time_budget_secs(self, secs: f64) -> Self
Builder method to set time budget in seconds.
Sourcepub fn max_samples(self, max: usize) -> Self
pub fn max_samples(self, max: usize) -> Self
Builder method to set max samples.
Trait Implementations§
Source§impl Clone for AdaptiveStepConfig
impl Clone for AdaptiveStepConfig
Source§fn clone(&self) -> AdaptiveStepConfig
fn clone(&self) -> AdaptiveStepConfig
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 AdaptiveStepConfig
impl Debug for AdaptiveStepConfig
Auto Trait Implementations§
impl Freeze for AdaptiveStepConfig
impl RefUnwindSafe for AdaptiveStepConfig
impl Send for AdaptiveStepConfig
impl Sync for AdaptiveStepConfig
impl Unpin for AdaptiveStepConfig
impl UnwindSafe for AdaptiveStepConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.