Trait statrs::statistics::Entropy
[−]
[src]
pub trait Entropy<T> { fn entropy(&self) -> T; }
The Entropy
trait specifies an object that has a closed form solution
for its entropy
Required Methods
fn entropy(&self) -> T
Returns the entropy. May panic depending on the implementor.
Examples
use statrs::statistics::Entropy; use statrs::distribution::Uniform; let n = Uniform::new(0.0, 1.0).unwrap(); assert_eq!(0.0, n.entropy());
Implementors
impl Entropy<f64> for Bernoulli
impl Entropy<f64> for Beta
impl Entropy<f64> for Binomial
impl Entropy<f64> for Chi
impl Entropy<f64> for ChiSquared
impl Entropy<f64> for DiscreteUniform
impl Entropy<f64> for Exponential
impl Entropy<f64> for Gamma
impl Entropy<f64> for LogNormal
impl Entropy<f64> for Normal
impl Entropy<f64> for Poisson
impl Entropy<f64> for StudentsT
impl Entropy<f64> for Triangular
impl Entropy<f64> for Uniform
impl Entropy<f64> for Weibull