pub enum QuantileWeight {
Uniform,
TailHeavy {
alpha: f64,
},
Custom(Vec<f64>),
}Expand description
Weighting scheme for quantile levels in weighted QMMD.
Variants§
Uniform
Equal weight at all quantile levels.
TailHeavy
Emphasize tail quantiles (near 0 and 1). Uses w(tau) = (tau*(1-tau))^{-alpha}
where alpha > 0 controls tail emphasis. Larger alpha = heavier tails.
Custom(Vec<f64>)
Custom weights, one per quantile level. Weights are normalized internally.
Trait Implementations§
Source§impl Clone for QuantileWeight
impl Clone for QuantileWeight
Source§fn clone(&self) -> QuantileWeight
fn clone(&self) -> QuantileWeight
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 moreAuto Trait Implementations§
impl Freeze for QuantileWeight
impl RefUnwindSafe for QuantileWeight
impl Send for QuantileWeight
impl Sync for QuantileWeight
impl Unpin for QuantileWeight
impl UnsafeUnpin for QuantileWeight
impl UnwindSafe for QuantileWeight
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