[−][src]Struct mathru::statistics::distrib::T
T distribution
Fore more information: https://en.wikipedia.org/wiki/T_distribution
Implementations
impl<K> T<K> where
K: Real,
[src]
K: Real,
Trait Implementations
impl<K: Clone> Clone for T<K>
[src]
impl<K> Continuous<K> for T<K> where
K: Real + Beta + Hypergeometric + Gamma,
[src]
K: Real + Beta + Hypergeometric + Gamma,
pub fn pdf(&self, x: K) -> K
[src]
Probability density function
Arguments
x
Random variable x &isin ࡃ
Example
use mathru::statistics::distrib::{Continuous, T}; let distrib: T<f64> = T::new(2.0); let x: f64 = 0.5; let p: f64 = distrib.pdf(x);
pub fn cdf(&self, x: K) -> K
[src]
Cumulative distribution function
Arguments
x
Random variable
Example
use mathru::statistics::distrib::{Continuous, T}; let distrib: T<f64> = T::new(1.3); let x: f64 = 0.4; let p: f64 = distrib.cdf(x);
pub fn quantile(&self, _p: K) -> K
[src]
Quantile function of inverse cdf
pub fn mean(&self) -> K
[src]
Expected value
Panics
if self.n <= 1.0
Example
use mathru::statistics::distrib::{Continuous, T}; let distrib: T<f64> = T::new(1.2); let mean: f64 = distrib.mean();
pub fn variance(&self) -> K
[src]
Variance
Example
use mathru::statistics::distrib::{Continuous, T}; let distrib: T<f64> = T::new(2.2); let var: f64 = distrib.variance();
pub fn skewness(&self) -> K
[src]
Panics
if self.n <= 3
pub fn median(&self) -> K
[src]
Median is the value separating the higher half from the lower half of a probability distribution.
pub fn entropy(&self) -> K
[src]
impl<K: Copy> Copy for T<K>
[src]
impl<K: Debug> Debug for T<K>
[src]
impl<'de, K> Deserialize<'de> for T<K> where
K: Deserialize<'de>,
[src]
K: Deserialize<'de>,
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<K> Serialize for T<K> where
K: Serialize,
[src]
K: Serialize,
Auto Trait Implementations
impl<K> RefUnwindSafe for T<K> where
K: RefUnwindSafe,
K: RefUnwindSafe,
impl<K> Send for T<K> where
K: Send,
K: Send,
impl<K> Sync for T<K> where
K: Sync,
K: Sync,
impl<K> Unpin for T<K> where
K: Unpin,
K: Unpin,
impl<K> UnwindSafe for T<K> where
K: UnwindSafe,
K: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,