Struct average::Min [−][src]
pub struct Min { /* fields omitted */ }
Expand description
Estimate the minimum of a sequence of numbers (“population”).
Example
use average::Min; let a: Min = (1..6).map(f64::from).collect(); println!("The minimum is {}.", a.min());
Implementations
Trait Implementations
impl<'de> Deserialize<'de> for Min
[src]
impl<'de> Deserialize<'de> for Min
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<'a> FromIterator<&'a f64> for Min
[src]
impl<'a> FromIterator<&'a f64> for Min
[src]impl FromIterator<f64> for Min
[src]
impl FromIterator<f64> for Min
[src]impl<'a> FromParallelIterator<&'a f64> for Min
[src]
impl<'a> FromParallelIterator<&'a f64> for Min
[src]rayon
only.fn from_par_iter<I>(par_iter: I) -> Min where
I: IntoParallelIterator<Item = &'a f64>,
Self: Merge,
[src]
fn from_par_iter<I>(par_iter: I) -> Min where
I: IntoParallelIterator<Item = &'a f64>,
Self: Merge,
[src]Creates an instance of the collection from the parallel iterator par_iter
. Read more
impl FromParallelIterator<f64> for Min
[src]
impl FromParallelIterator<f64> for Min
[src]rayon
only.fn from_par_iter<I>(par_iter: I) -> Min where
I: IntoParallelIterator<Item = f64>,
Self: Merge,
[src]
fn from_par_iter<I>(par_iter: I) -> Min where
I: IntoParallelIterator<Item = f64>,
Self: Merge,
[src]Creates an instance of the collection from the parallel iterator par_iter
. Read more
impl Merge for Min
[src]
impl Merge for Min
[src]fn merge(&mut self, other: &Min)
[src]
fn merge(&mut self, other: &Min)
[src]Merge another sample into this one.
Example
use average::{Min, Merge}; let sequence: &[f64] = &[1., 2., 3., 4., 5., 6., 7., 8., 9.]; let (left, right) = sequence.split_at(3); let min_total: Min = sequence.iter().collect(); let mut min_left: Min = left.iter().collect(); let min_right: Min = right.iter().collect(); min_left.merge(&min_right); assert_eq!(min_total.min(), min_left.min());
Auto Trait Implementations
impl RefUnwindSafe for Min
impl Send for Min
impl Sync for Min
impl Unpin for Min
impl UnwindSafe for Min
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<S, T> CastFloat<T> for S where
T: ConvFloat<S>,
[src]
impl<S, T> CastFloat<T> for S where
T: ConvFloat<S>,
[src]pub fn cast_trunc(self) -> T
[src]
pub fn cast_trunc(self) -> T
[src]Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
[src]
pub fn cast_nearest(self) -> T
[src]Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
[src]
pub fn cast_floor(self) -> T
[src]Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
[src]
pub fn try_cast_trunc(self) -> Result<T, Error>
[src]Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
[src]
pub fn try_cast_nearest(self) -> Result<T, Error>
[src]Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
[src]
pub fn try_cast_floor(self) -> Result<T, Error>
[src]Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
[src]
pub fn try_cast_ceil(self) -> Result<T, Error>
[src]Try convert the ceiling to an integer Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,