pub struct Moments {
pub m20: C64,
pub m21: f64,
pub m40: C64,
pub m41: C64,
pub m42: f64,
}Expand description
The moments of order two and four of a complex random variable $r$ (see the module).
Fields§
§m20: C64$\mathbb{E}[r^{2}]$.
m21: f64$\mathbb{E}|r|^{2}$.
m40: C64$\mathbb{E}[r^{4}]$.
m41: C64$\mathbb{E}[r^{2}|r|^{2}]$.
m42: f64$\mathbb{E}|r|^{4}$.
Implementations§
Source§impl Moments
impl Moments
Sourcepub fn sample(x: &[C64]) -> Moments
pub fn sample(x: &[C64]) -> Moments
The sample moments of x: the sums divided by the number of samples (NaN
without a sample).
Sourcepub fn of_distribution(x: &[C64], p: &[f64]) -> Moments
pub fn of_distribution(x: &[C64], p: &[f64]) -> Moments
The moments of the distribution of the points x with the probabilities p (the
pairs of the shorter of the two).
Trait Implementations§
impl Copy for Moments
impl StructuralPartialEq for Moments
Auto Trait Implementations§
impl Freeze for Moments
impl RefUnwindSafe for Moments
impl Send for Moments
impl Sync for Moments
impl Unpin for Moments
impl UnsafeUnpin for Moments
impl UnwindSafe for Moments
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