pub struct VonMises {
pub mu: f64,
pub kappa: f64,
}Expand description
The von Mises distribution on the circle, f(x) ∝ e^{κ cos(x − μ)} on [μ − π, μ + π]
(SciPy’s vonmises(kappa=κ, loc=μ)).
Fields§
§mu: f64§kappa: f64Implementations§
Trait Implementations§
Source§impl ContinuousDistribution for VonMises
impl ContinuousDistribution for VonMises
Source§fn cdf(&self, x: f64) -> f64
fn cdf(&self, x: f64) -> f64
The Fourier series F(x) = (x − μ + π + 2 Σ_j A_j(κ) sin(j(x − μ)) / j) / (2π) with
A_j = I_j(κ)/I₀(κ).
Source§fn variance(&self) -> f64
fn variance(&self) -> f64
The variance of the linear variable on [μ − π, μ + π]: π²/3 + 4 Σ (−1)ʲ A_j / j².
Source§fn excess_kurtosis(&self) -> f64
fn excess_kurtosis(&self) -> f64
E(x−μ)⁴ / σ⁴ − 3, with E(x−μ)⁴ = π⁴/5 + Σ (−1)ʲ A_j (8π²/j² − 48/j⁴).
fn mean(&self) -> f64
fn skewness(&self) -> f64
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).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 VonMises
impl StructuralPartialEq for VonMises
Auto Trait Implementations§
impl Freeze for VonMises
impl RefUnwindSafe for VonMises
impl Send for VonMises
impl Sync for VonMises
impl Unpin for VonMises
impl UnsafeUnpin for VonMises
impl UnwindSafe for VonMises
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