pub struct Rice {
pub nu: f64,
pub sigma: f64,
}Expand description
The Rice distribution of the length of a two-dimensional normal vector with mean length ν
and standard deviation σ per component (SciPy’s rice(b = ν/σ, scale = σ)):
f(x) = x/σ² exp(−(x² + ν²)/(2σ²)) I₀(xν/σ²). With ν = 0 it is the Rayleigh distribution;
for ν ≫ σ it approaches N(ν, σ²). X²/σ² is non-central χ² with 2 degrees of freedom and
non-centrality (ν/σ)², which gives the distribution function as a Poisson mixture of
regularised incomplete gamma functions.
Fields§
§nu: f64§sigma: f64Implementations§
Trait Implementations§
Source§impl ContinuousDistribution for Rice
impl ContinuousDistribution for Rice
Source§fn logpdf(&self, x: f64) -> f64
fn logpdf(&self, x: f64) -> f64
The log density (more accurate than
pdf(x).ln() in the tails where overridden).fn mean(&self) -> f64
fn variance(&self) -> f64
fn skewness(&self) -> f64
Source§fn excess_kurtosis(&self) -> f64
fn excess_kurtosis(&self) -> f64
The excess kurtosis (zero for the normal distribution), as SciPy’s
stats(moments='k').Source§fn ppf(&self, p: f64) -> f64
fn ppf(&self, p: f64) -> f64
The quantile (percent-point) function, the inverse of the distribution function.
fn std(&self) -> f64
fn median(&self) -> f64
Source§fn interval(&self, confidence: f64) -> (f64, f64)
fn interval(&self, confidence: f64) -> (f64, f64)
The central interval containing a fraction
confidence of the probability.Source§fn log_likelihood(&self, data: &[f64]) -> f64
fn log_likelihood(&self, data: &[f64]) -> f64
Σ log f(xᵢ).impl Copy for Rice
impl StructuralPartialEq for Rice
Auto Trait Implementations§
impl Freeze for Rice
impl RefUnwindSafe for Rice
impl Send for Rice
impl Sync for Rice
impl Unpin for Rice
impl UnsafeUnpin for Rice
impl UnwindSafe for Rice
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