[][src]Struct ndarray_stats::histogram::strategies::Auto

pub struct Auto<T> { /* fields omitted */ }

Maximum of the Sturges and FreedmanDiaconis strategies. Provides good all around performance.

A compromise to get a good value. For small datasets the Sturges value will usually be chosen, while larger datasets will usually default to FreedmanDiaconis. Avoids the overly conservative behaviour of FreedmanDiaconis and Sturges for small and large datasets respectively.

Methods

impl<T> Auto<T> where
    T: Ord + Clone + FromPrimitive + NumOps + Zero
[src]

pub fn bin_width(&self) -> T[src]

The bin width (or bin length) according to the fitted strategy.

Trait Implementations

impl<T> BinsBuildingStrategy for Auto<T> where
    T: Ord + Clone + FromPrimitive + NumOps + Zero
[src]

type Elem = T

fn from_array<S>(a: &ArrayBase<S, Ix1>) -> Result<Self, BinsBuildError> where
    S: Data<Elem = Self::Elem>, 
[src]

Returns Err(BinsBuildError::Strategy) if IQR==0. Returns Err(BinsBuildError::EmptyInput) if a.len()==0. Returns Ok(Self) otherwise.

impl<T: Debug> Debug for Auto<T>[src]

Auto Trait Implementations

impl<T> Send for Auto<T> where
    T: Send

impl<T> Unpin for Auto<T> where
    T: Unpin

impl<T> Sync for Auto<T> where
    T: Sync

impl<T> UnwindSafe for Auto<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Auto<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,