Struct rv::dist::InvChiSquared [−][src]
pub struct InvChiSquared { /* fields omitted */ }
Implementations
impl InvChiSquared
[src]
impl InvChiSquared
[src]pub fn new(v: f64) -> Result<Self, InvChiSquaredError>
[src]
pub fn new_unchecked(v: f64) -> Self
[src]
Create a new InvChiSquared without checking whether the parameters are valid.
pub fn v(&self) -> f64
[src]
Get the degrees of freedom, v
.
Example
let ix2 = InvChiSquared::new(1.2).unwrap(); assert_eq!(ix2.v(), 1.2);
pub fn set_v(&mut self, v: f64) -> Result<(), InvChiSquaredError>
[src]
Set the degrees of freedom, k
.
Example
let mut ix2 = InvChiSquared::new(1.2).unwrap(); ix2.set_v(2.2).unwrap(); assert_eq!(ix2.v(), 2.2);
Will error given invalid values.
assert!(ix2.set_v(2.2).is_ok()); assert!(ix2.set_v(0.0).is_err()); assert!(ix2.set_v(-1.0).is_err()); assert!(ix2.set_v(std::f64::NAN).is_err()); assert!(ix2.set_v(std::f64::INFINITY).is_err());
pub fn set_v_unchecked(&mut self, v: f64)
[src]
Trait Implementations
impl Cdf<f32> for InvChiSquared
[src]
impl Cdf<f32> for InvChiSquared
[src]impl Cdf<f64> for InvChiSquared
[src]
impl Cdf<f64> for InvChiSquared
[src]impl Clone for InvChiSquared
[src]
impl Clone for InvChiSquared
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ContinuousDistr<f32> for InvChiSquared
[src]
impl ContinuousDistr<f32> for InvChiSquared
[src]impl ContinuousDistr<f64> for InvChiSquared
[src]
impl ContinuousDistr<f64> for InvChiSquared
[src]impl PartialEq<InvChiSquared> for InvChiSquared
[src]
impl PartialEq<InvChiSquared> for InvChiSquared
[src]impl Rv<f32> for InvChiSquared
[src]
impl Rv<f32> for InvChiSquared
[src]impl Rv<f64> for InvChiSquared
[src]
impl Rv<f64> for InvChiSquared
[src]Auto Trait Implementations
impl RefUnwindSafe for InvChiSquared
impl RefUnwindSafe for InvChiSquared
impl Send for InvChiSquared
impl Send for InvChiSquared
impl Sync for InvChiSquared
impl Sync for InvChiSquared
impl Unpin for InvChiSquared
impl Unpin for InvChiSquared
impl UnwindSafe for InvChiSquared
impl UnwindSafe for InvChiSquared
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>,