pub struct ChiSquaredAnalyzer { /* private fields */ }Expand description
Analyzer for chi-squared goodness-of-fit tests.
Implementations§
Source§impl ChiSquaredAnalyzer
impl ChiSquaredAnalyzer
Sourcepub fn with_binning(self, strategy: BinningStrategy) -> Self
pub fn with_binning(self, strategy: BinningStrategy) -> Self
Set the binning strategy.
Sourcepub fn with_expected(self, expected: ExpectedDistribution) -> Self
pub fn with_expected(self, expected: ExpectedDistribution) -> Self
Set the expected distribution.
Sourcepub fn with_significance_level(self, level: f64) -> Self
pub fn with_significance_level(self, level: f64) -> Self
Set the significance level.
Sourcepub fn with_min_expected(self, min: f64) -> Self
pub fn with_min_expected(self, min: f64) -> Self
Set minimum expected frequency per bin.
Sourcepub fn analyze_continuous(
&self,
values: &[f64],
) -> EvalResult<ChiSquaredAnalysis>
pub fn analyze_continuous( &self, values: &[f64], ) -> EvalResult<ChiSquaredAnalysis>
Analyze continuous data (will be binned).
Sourcepub fn analyze_categorical(
&self,
observed: &[usize],
) -> EvalResult<ChiSquaredAnalysis>
pub fn analyze_categorical( &self, observed: &[usize], ) -> EvalResult<ChiSquaredAnalysis>
Analyze categorical/count data directly.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChiSquaredAnalyzer
impl RefUnwindSafe for ChiSquaredAnalyzer
impl Send for ChiSquaredAnalyzer
impl Sync for ChiSquaredAnalyzer
impl Unpin for ChiSquaredAnalyzer
impl UnwindSafe for ChiSquaredAnalyzer
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.