Trait statistics::Real [] [src]

pub trait Real: Copy + Add<Output=Self> + Div<Output=Self> + Mul<Output=Self> + Sub<Output=Self> {
    fn one() -> Self;
    fn zero() -> Self;
    fn from_natural(usize) -> Self;
}

A real number.

Required Methods

fn one() -> Self

Return the unity.

fn zero() -> Self

Return the zero.

fn from_natural(usize) -> Self

Create a real number from a natural one.

Implementors