pub struct Table { /* private fields */ }Expand description
A two-way contingency table of observed counts.
Implementations§
Source§impl Table
impl Table
Sourcepub fn marginal_probabilities(&self) -> (Vec<f64>, Vec<f64>)
pub fn marginal_probabilities(&self) -> (Vec<f64>, Vec<f64>)
Estimated marginal probability distributions (row, col).
Sourcepub fn fittedvalues(&self) -> Array2<f64>
pub fn fittedvalues(&self) -> Array2<f64>
Fitted (expected) cell counts under the independence model.
Sourcepub fn test_nominal_association(&self) -> ContingencyResult
pub fn test_nominal_association(&self) -> ContingencyResult
Chi-squared test of independence between rows and columns.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnsafeUnpin for Table
impl UnwindSafe for Table
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