pub enum QuantileInterpolation {
Show 13 variants
InvertedCdf,
AveragedInvertedCdf,
ClosestObservation,
InterpolatedInvertedCdf,
Hazen,
Weibull,
Linear,
MedianUnbiased,
NormalUnbiased,
Midpoint,
Nearest,
Lower,
Higher,
}Expand description
Methods for interpolating quantiles
These methods correspond to the methods in scipy.stats.quantile.
Variants§
InvertedCdf
Return the first data point whose position equals or exceeds the quantile. Also known as type 1 in Hyndman and Fan’s classification.
AveragedInvertedCdf
Return the average of the two data points closest to the quantile. Also known as type 2 in Hyndman and Fan’s classification.
ClosestObservation
Return the closest data point to the quantile. Also known as type 3 in Hyndman and Fan’s classification.
InterpolatedInvertedCdf
Use linear interpolation of the inverted CDF, with m=0. Also known as type 4 in Hyndman and Fan’s classification.
Hazen
Use linear interpolation with m=0.5 (Hazen’s formula). Also known as type 5 in Hyndman and Fan’s classification.
Weibull
Use linear interpolation with m=p (Weibull’s formula). Also known as type 6 in Hyndman and Fan’s classification.
Linear
Use linear interpolation with m=1-p (standard linear interpolation). Also known as type 7 in Hyndman and Fan’s classification (default in R).
MedianUnbiased
Use linear interpolation with m=p/3 + 1/3 (median-unbiased). Also known as type 8 in Hyndman and Fan’s classification.
NormalUnbiased
Use linear interpolation with m=p/4 + 3/8 (normal-unbiased). Also known as type 9 in Hyndman and Fan’s classification.
Midpoint
Use a midpoint interpolation.
Nearest
Use nearest interpolation.
Lower
Use lower interpolation.
Higher
Use higher interpolation.
Trait Implementations§
Source§impl Clone for QuantileInterpolation
impl Clone for QuantileInterpolation
Source§fn clone(&self) -> QuantileInterpolation
fn clone(&self) -> QuantileInterpolation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QuantileInterpolation
impl Debug for QuantileInterpolation
Source§impl Default for QuantileInterpolation
impl Default for QuantileInterpolation
Source§fn default() -> QuantileInterpolation
fn default() -> QuantileInterpolation
Source§impl PartialEq for QuantileInterpolation
impl PartialEq for QuantileInterpolation
impl Copy for QuantileInterpolation
impl Eq for QuantileInterpolation
impl StructuralPartialEq for QuantileInterpolation
Auto Trait Implementations§
impl Freeze for QuantileInterpolation
impl RefUnwindSafe for QuantileInterpolation
impl Send for QuantileInterpolation
impl Sync for QuantileInterpolation
impl Unpin for QuantileInterpolation
impl UnsafeUnpin for QuantileInterpolation
impl UnwindSafe for QuantileInterpolation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.