Trait statrs::statistics::CheckedEntropy [−][src]
The CheckedEntropy
trait specifies an object that has a closed form
solutions for its entropy wih possible failure modes
Required methods
fn checked_entropy(&self) -> Result<T>
[src]
Returns the entropy.
Examples
use statrs::statistics::CheckedEntropy; use statrs::distribution::StudentsT; let n = StudentsT::new(0.0, 2.0, 1.0).unwrap(); assert!(n.checked_entropy().is_err());