pub struct LocalThreshold {
pub tau_n: f32,
pub mu_same: f32,
pub sigma_same: f32,
pub mu_diff: f32,
pub sigma_diff: f32,
pub sample_size: usize,
}Expand description
Per-node distribution-derived threshold and its component stats.
Fields§
§tau_n: f32The derived tau_n = max(mu_same - k*sigma_same, mu_diff + sigma_diff).
mu_same: f32Mean of the same-class (higher-mean) GMM component.
sigma_same: f32Std-dev of the same-class GMM component.
mu_diff: f32Mean of the different-class (lower-mean) GMM component.
sigma_diff: f32Std-dev of the different-class GMM component.
sample_size: usizeSize of the HNSW-local sample used.
Trait Implementations§
Source§impl Clone for LocalThreshold
impl Clone for LocalThreshold
Source§fn clone(&self) -> LocalThreshold
fn clone(&self) -> LocalThreshold
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 LocalThreshold
impl Debug for LocalThreshold
Source§impl PartialEq for LocalThreshold
impl PartialEq for LocalThreshold
impl Copy for LocalThreshold
impl StructuralPartialEq for LocalThreshold
Auto Trait Implementations§
impl Freeze for LocalThreshold
impl RefUnwindSafe for LocalThreshold
impl Send for LocalThreshold
impl Sync for LocalThreshold
impl Unpin for LocalThreshold
impl UnsafeUnpin for LocalThreshold
impl UnwindSafe for LocalThreshold
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