pub struct WeightParams<T> {
pub x_current: T,
pub bandwidth: T,
pub h1: T,
pub h9: T,
pub use_robustness: bool,
pub weight_fn: WeightFunction,
}Expand description
Parameters for weight computation.
Fields§
§x_current: TCurrent x value being fitted
bandwidth: TBandwidth (window half-width)
h1: TNOTE: h1 and h9 are implementation optimizations / truncation thresholds, not formal LOWESS parameters. They are used to fast-path near-zero distances (h1) and to truncate the kernel support for efficiency (h9). h1 = 0.001 * bandwidth ⇒ kernel weight forced to 1.0 for extremely close points; h9 = 0.999 * bandwidth used to stop scanning beyond the effective window in sorted x arrays. Low threshold (0.001 * bandwidth) – assign weight 1.0
h9: THigh threshold (0.999 * bandwidth) – assign weight 0.0
use_robustness: boolWhether to use robustness weights
weight_fn: WeightFunctionWeight function to use
Auto Trait Implementations§
impl<T> Freeze for WeightParams<T>where
T: Freeze,
impl<T> RefUnwindSafe for WeightParams<T>where
T: RefUnwindSafe,
impl<T> Send for WeightParams<T>where
T: Send,
impl<T> Sync for WeightParams<T>where
T: Sync,
impl<T> Unpin for WeightParams<T>where
T: Unpin,
impl<T> UnwindSafe for WeightParams<T>where
T: UnwindSafe,
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