onay_stat

Struct Calc

Source
pub struct Calc { /* private fields */ }

Implementations§

Source§

impl Calc

Source

pub fn length(&self) -> usize

Source

pub fn even(&self) -> bool

Source

pub fn total(&mut self) -> f64

Source

pub fn mean(&mut self) -> f64

Source

pub fn median(&mut self) -> f64

Source

pub fn sorted_median(&mut self) -> f64

Source

pub fn range(&mut self) -> f64

Source

pub fn variance(&mut self) -> f64

Source

pub fn standart_deviation(&mut self) -> f64

Source

pub fn max_indices(&mut self) -> Vec<usize>

Source

pub fn max_value(&mut self) -> f64

Source

pub fn min_indices(&mut self) -> Vec<usize>

Source

pub fn min_value(&mut self) -> f64

Source

pub fn mode(&mut self) -> f64

Source

pub fn run_all(&mut self)

Source

pub fn display(&self)

Source

pub fn new(data: Vec<f64>) -> Option<Calc>

Making a new Calc struct from f64 vector

Source

pub fn new_f32(data: Vec<f32>) -> Option<Calc>

Make a new Calc strcut from f32

Source

pub fn new_i8(data: Vec<i8>) -> Option<Calc>

Make a new Calc strcut from i8

Source

pub fn new_i16(data: Vec<i16>) -> Option<Calc>

Source

pub fn new_i32(data: Vec<i32>) -> Option<Calc>

Source

pub fn new_u8(data: Vec<u8>) -> Option<Calc>

Source

pub fn new_u16(data: Vec<u16>) -> Option<Calc>

Source

pub fn new_u32(data: Vec<u32>) -> Option<Calc>

Trait Implementations§

Source§

impl Debug for Calc

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for Calc

Source§

fn default() -> Calc

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Calc

§

impl RefUnwindSafe for Calc

§

impl Send for Calc

§

impl Sync for Calc

§

impl Unpin for Calc

§

impl UnwindSafe for Calc

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.