pub struct PearsonIv {
pub mean: f64,
pub std_dev: f64,
pub skewness: f64,
pub kurtosis: f64,
pub m: f64,
pub nu: f64,
pub a: f64,
pub lambda: f64,
pub log_norm: f64,
}Expand description
A Pearson type IV density, stored both as the four moments it matches and as Heinrich’s parameters.
Units: mean, std_dev, a and lambda are in the unit of the samples
(metres for depth profiles); the rest are dimensionless. log_norm is
ln k with k in inverse sample units.
Fields§
§mean: f64Mean (Rp for a depth profile).
std_dev: f64Standard deviation (ΔRp).
skewness: f64Skewness γ.
kurtosis: f64Kurtosis β (not excess).
m: f64Shape parameter m > 5/2.
nu: f64Asymmetry parameter ν.
a: f64Scale a > 0.
lambda: f64Location λ.
log_norm: f64ln k, the log of the normalisation constant.
Implementations§
Source§impl PearsonIv
impl PearsonIv
Sourcepub fn from_moments(
mean: f64,
std_dev: f64,
skewness: f64,
kurtosis: f64,
) -> Result<Self, PearsonError>
pub fn from_moments( mean: f64, std_dev: f64, skewness: f64, kurtosis: f64, ) -> Result<Self, PearsonError>
The Pearson IV density with the given mean, standard deviation,
skewness and kurtosis (Heinrich 2004). Errors if a moment is not
finite, std_dev <= 0, or (γ, β) is outside the type IV region.
Trait Implementations§
impl Copy for PearsonIv
Source§impl<'de> Deserialize<'de> for PearsonIv
impl<'de> Deserialize<'de> for PearsonIv
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PearsonIv
Auto Trait Implementations§
impl Freeze for PearsonIv
impl RefUnwindSafe for PearsonIv
impl Send for PearsonIv
impl Sync for PearsonIv
impl Unpin for PearsonIv
impl UnsafeUnpin for PearsonIv
impl UnwindSafe for PearsonIv
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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