Trait linfa::dataset::Float[][src]

pub trait Float: FromPrimitive + Float + PartialOrd + Sync + Send + Default + Display + Debug + Signed + Sum + NumAssignOps + AsPrimitive<usize> + for<'a> AddAssign<&'a Self> + for<'a> MulAssign<&'a Self> + for<'a> SubAssign<&'a Self> + for<'a> DivAssign<&'a Self> + MulAdd<Output = Self> + SampleUniform + ScalarOperand + AbsDiffEq {
    type Lapack: Float;
    fn cast<T: NumCast>(x: T) -> Self { ... }
}

Floating point numbers

This trait bound multiplexes to the most common assumption of floating point number and implement them for 32bit and 64bit floating points. They are used in records of a dataset and, for regression task, in the targets as well.

Associated Types

Loading content...

Provided methods

fn cast<T: NumCast>(x: T) -> Self[src]

Loading content...

Implementations on Foreign Types

impl Float for f32[src]

type Lapack = f32

impl Float for f64[src]

type Lapack = f64

Loading content...

Implementors

Loading content...