Struct rv::dist::ChiSquared [−][src]
pub struct ChiSquared { /* fields omitted */ }
Implementations
impl ChiSquared
[src]
impl ChiSquared
[src]pub fn new(k: f64) -> Result<Self, ChiSquaredError>
[src]
pub fn new_unchecked(k: f64) -> Self
[src]
Create a new ChiSquared without checking whether the parameters are valid.
pub fn k(&self) -> f64
[src]
Get the degrees of freedom, k
.
Example
let x2 = ChiSquared::new(1.2).unwrap(); assert_eq!(x2.k(), 1.2);
pub fn set_k(&mut self, k: f64) -> Result<(), ChiSquaredError>
[src]
Set the degrees of freedom, k
.
Example
let mut x2 = ChiSquared::new(1.2).unwrap(); x2.set_k(2.2).unwrap(); assert_eq!(x2.k(), 2.2);
Will error given invalid values.
assert!(x2.set_k(2.2).is_ok()); assert!(x2.set_k(0.0).is_err()); assert!(x2.set_k(-1.0).is_err()); assert!(x2.set_k(std::f64::NAN).is_err()); assert!(x2.set_k(std::f64::INFINITY).is_err());
pub fn set_k_unchecked(&mut self, k: f64)
[src]
Trait Implementations
impl Clone for ChiSquared
[src]
impl Clone for ChiSquared
[src]fn clone(&self) -> ChiSquared
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ContinuousDistr<f32> for ChiSquared
[src]
impl ContinuousDistr<f32> for ChiSquared
[src]impl ContinuousDistr<f64> for ChiSquared
[src]
impl ContinuousDistr<f64> for ChiSquared
[src]impl PartialEq<ChiSquared> for ChiSquared
[src]
impl PartialEq<ChiSquared> for ChiSquared
[src]fn eq(&self, other: &ChiSquared) -> bool
[src]
fn ne(&self, other: &ChiSquared) -> bool
[src]
impl Rv<f32> for ChiSquared
[src]
impl Rv<f32> for ChiSquared
[src]impl Rv<f64> for ChiSquared
[src]
impl Rv<f64> for ChiSquared
[src]impl StructuralPartialEq for ChiSquared
[src]
impl StructuralPartialEq for ChiSquared
[src]Auto Trait Implementations
impl RefUnwindSafe for ChiSquared
impl RefUnwindSafe for ChiSquared
impl Send for ChiSquared
impl Send for ChiSquared
impl Sync for ChiSquared
impl Sync for ChiSquared
impl Unpin for ChiSquared
impl Unpin for ChiSquared
impl UnwindSafe for ChiSquared
impl UnwindSafe for ChiSquared
Blanket Implementations
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,