Add missing impls to *InverseGaussian errors

This commit is contained in:
Vinzent Steinberg
2021-05-13 14:52:23 -03:00
parent 2c32fe0b04
commit 18bea4ca94
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ use num_traits::Float;
use rand::Rng;
/// Error type returned from `InverseGaussian::new`
#[derive(Debug, PartialEq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Error {
/// `mean <= 0` or `nan`.
MeanNegativeOrNull,
+1 -1
View File
@@ -3,7 +3,7 @@ use num_traits::Float;
use rand::Rng;
/// Error type returned from `NormalInverseGaussian::new`
#[derive(Debug, PartialEq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Error {
/// `alpha <= 0` or `nan`.
AlphaNegativeOrNull,