pub struct Auto<T> { /* private fields */ }Expand description
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.
§Notes
This strategy requires the data
- not being empty
- not being constant
- having positive
IQR
Implementations§
Trait Implementations§
Source§impl<T> BinsBuildingStrategy for Auto<T>
impl<T> BinsBuildingStrategy for Auto<T>
Source§fn from_array<S>(a: &ArrayBase<S, Ix1>) -> Result<Self, BinsBuildError>
fn from_array<S>(a: &ArrayBase<S, Ix1>) -> Result<Self, BinsBuildError>
Returns Err(BinsBuildError::Strategy) if IQR==0.
Returns Err(BinsBuildError::EmptyInput) if a.len()==0.
Returns Ok(Self) otherwise.
type Elem = T
Auto Trait Implementations§
impl<T> Freeze for Auto<T>where
T: Freeze,
impl<T> RefUnwindSafe for Auto<T>where
T: RefUnwindSafe,
impl<T> Send for Auto<T>where
T: Send,
impl<T> Sync for Auto<T>where
T: Sync,
impl<T> Unpin for Auto<T>where
T: Unpin,
impl<T> UnwindSafe for Auto<T>where
T: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more