pub struct StatisticalTests;Expand description
Statistical tests implementation
Implementations§
Source§impl StatisticalTests
impl StatisticalTests
Sourcepub fn one_sample_ttest(
data: &Array1<f64>,
population_mean: f64,
alpha: f64,
) -> Result<TestResult, UtilsError>
pub fn one_sample_ttest( data: &Array1<f64>, population_mean: f64, alpha: f64, ) -> Result<TestResult, UtilsError>
One-sample t-test
Sourcepub fn two_sample_ttest(
data1: &Array1<f64>,
data2: &Array1<f64>,
alpha: f64,
) -> Result<TestResult, UtilsError>
pub fn two_sample_ttest( data1: &Array1<f64>, data2: &Array1<f64>, alpha: f64, ) -> Result<TestResult, UtilsError>
Two-sample t-test (assuming equal variances)
Sourcepub fn welch_ttest(
data1: &Array1<f64>,
data2: &Array1<f64>,
alpha: f64,
) -> Result<TestResult, UtilsError>
pub fn welch_ttest( data1: &Array1<f64>, data2: &Array1<f64>, alpha: f64, ) -> Result<TestResult, UtilsError>
Welch’s t-test (unequal variances)
Sourcepub fn chi_square_goodness_of_fit(
observed: &Array1<f64>,
expected: &Array1<f64>,
alpha: f64,
) -> Result<TestResult, UtilsError>
pub fn chi_square_goodness_of_fit( observed: &Array1<f64>, expected: &Array1<f64>, alpha: f64, ) -> Result<TestResult, UtilsError>
Chi-square goodness of fit test
Sourcepub fn ks_test_normality(
data: &Array1<f64>,
alpha: f64,
) -> Result<TestResult, UtilsError>
pub fn ks_test_normality( data: &Array1<f64>, alpha: f64, ) -> Result<TestResult, UtilsError>
Kolmogorov-Smirnov test for normality
Sourcepub fn anderson_darling_test(
data: &Array1<f64>,
alpha: f64,
) -> Result<TestResult, UtilsError>
pub fn anderson_darling_test( data: &Array1<f64>, alpha: f64, ) -> Result<TestResult, UtilsError>
Anderson-Darling test for normality
Auto Trait Implementations§
impl Freeze for StatisticalTests
impl RefUnwindSafe for StatisticalTests
impl Send for StatisticalTests
impl Sync for StatisticalTests
impl Unpin for StatisticalTests
impl UnwindSafe for StatisticalTests
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