pub struct AdaptiveThresholdConfig {
pub min_threshold: f64,
pub max_threshold: f64,
pub max_iterations: usize,
pub target_match_ratio: Option<f64>,
pub min_samples: usize,
pub precision: f64,
}Expand description
Configuration for adaptive threshold adjustment.
Fields§
§min_threshold: f64Minimum allowed threshold (don’t go below this)
max_threshold: f64Maximum allowed threshold (don’t go above this)
max_iterations: usizeNumber of iterations for binary search
target_match_ratio: Option<f64>Target match ratio (0.0 - 1.0, where 1.0 means all components match)
min_samples: usizeMinimum number of samples needed for reliable estimation
precision: f64Precision for binary search convergence
Implementations§
Source§impl AdaptiveThresholdConfig
impl AdaptiveThresholdConfig
Sourcepub fn for_target_ratio(ratio: f64) -> Self
pub fn for_target_ratio(ratio: f64) -> Self
Configure for target match ratio search.
Trait Implementations§
Source§impl Clone for AdaptiveThresholdConfig
impl Clone for AdaptiveThresholdConfig
Source§fn clone(&self) -> AdaptiveThresholdConfig
fn clone(&self) -> AdaptiveThresholdConfig
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 AdaptiveThresholdConfig
impl Debug for AdaptiveThresholdConfig
Auto Trait Implementations§
impl Freeze for AdaptiveThresholdConfig
impl RefUnwindSafe for AdaptiveThresholdConfig
impl Send for AdaptiveThresholdConfig
impl Sync for AdaptiveThresholdConfig
impl Unpin for AdaptiveThresholdConfig
impl UnsafeUnpin for AdaptiveThresholdConfig
impl UnwindSafe for AdaptiveThresholdConfig
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more