Column

Struct Column 

Source
pub struct Column<T: NumericType<T>> { /* private fields */ }
Expand description

Data wrapper populated with values.

Implementations§

Source§

impl<T: NumericType<T>> Column<T>

Source

pub fn new() -> EmptyColumn<T>

Source

pub fn sum(&self) -> Option<T>

Sums x

Source

pub fn sum_x2(&self) -> Option<T>

Sums x^2

Source

pub fn moment_i(&self) -> Option<f64>

Moment-I (pop. Average)

Source

pub fn moment_ii(&self) -> Option<f64>

Moment-II

Source

pub fn variance(&self) -> Option<f64>

Sample Variance. (Square of the sample standard deviation).

Source

pub fn stddev(&self) -> Option<f64>

Sample Standard Deviation.

Source

pub fn min(&self) -> Option<T>

Source

pub fn max(&self) -> Option<T>

Source

pub fn count(&self) -> Option<usize>

Source

pub fn print(&self)

Source

pub fn sum_t(&self, number_of_threads: usize) -> Option<T>

Source

pub fn sum_x2_t(&self, number_of_threads: usize) -> Option<T>

Source

pub fn moment_i_t(&self, number_of_threads: usize) -> Option<f64>

Source

pub fn moment_ii_t(&self, number_of_threads: usize) -> Option<f64>

Source

pub fn variance_t(&self, number_of_threads: usize) -> Option<f64>

Source

pub fn stddev_t(&self, number_of_threads: usize) -> Option<f64>

Source

pub fn min_t(&self, number_of_threads: usize) -> Option<T>

Source

pub fn max_t(&self, number_of_threads: usize) -> Option<T>

Source

pub fn count_t(&self, number_of_threads: usize) -> Option<usize>

Trait Implementations§

Source§

impl<T: NumericType<T>> Debug for Column<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> Freeze for Column<T>

§

impl<T> RefUnwindSafe for Column<T>
where T: RefUnwindSafe,

§

impl<T> Send for Column<T>

§

impl<T> Sync for Column<T>

§

impl<T> Unpin for Column<T>

§

impl<T> UnwindSafe for Column<T>
where T: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.