pub enum RandomError {
Show 14 variants
Beta {
source: BetaError,
location: &'static Location<'static>,
},
Normal {
source: NormalError,
location: &'static Location<'static>,
},
ChiSquare {
source: ChiSquaredError,
location: &'static Location<'static>,
},
Exp {
source: ExpError,
location: &'static Location<'static>,
},
Gamma {
source: GammaError,
location: &'static Location<'static>,
},
Gumbel {
source: GumbelError,
location: &'static Location<'static>,
},
NormalInverseGaussian {
source: NormalInverseGaussianError,
location: &'static Location<'static>,
},
Pareto {
source: ParetoError,
location: &'static Location<'static>,
},
Poisson {
source: PoissonError,
location: &'static Location<'static>,
},
Weibull {
source: WeibullError,
location: &'static Location<'static>,
},
Zipf {
source: ZipfError,
location: &'static Location<'static>,
},
Triangular {
source: TriangularError,
location: &'static Location<'static>,
},
Bernoulli {
source: BernoulliError,
location: &'static Location<'static>,
},
Uniform {
source: Error,
location: &'static Location<'static>,
},
}Expand description
Random distribution-related errors
Variants§
Beta
Beta distribution error
Fields
Normal
Normal distribution error
Fields
§
source: NormalErrorNormal distribution error
ChiSquare
Chi-square distribution error
Fields
§
source: ChiSquaredErrorChi-square distribution error
Exp
Exponential distribution error
Fields
Gamma
Gamma distribution error
Fields
§
source: GammaErrorGamma distribution error
Gumbel
Gumbel distribution error
Fields
§
source: GumbelErrorGumbel distribution error
NormalInverseGaussian
Inverse Gaussian distribution error
Fields
§
source: NormalInverseGaussianErrorInverse Gaussian distribution error
Pareto
Pareto distribution error
Fields
§
source: ParetoErrorPareto distribution error
Poisson
Poisson distribution error
Fields
§
source: PoissonErrorPoisson distribution error
Weibull
Weibull distribution error
Fields
§
source: WeibullErrorWeibull distribution error
Zipf
Zipf distribution error
Fields
Triangular
Triangular distribution error
Fields
§
source: TriangularErrorTriangular distribution error
Bernoulli
Bernoulli distribution error
Fields
§
source: BernoulliErrorBernoulli distribution error
Uniform
Uniform distribution error
Trait Implementations§
Source§impl Debug for RandomError
impl Debug for RandomError
Source§impl Display for RandomError
impl Display for RandomError
Source§impl Error for RandomError
impl Error for RandomError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<RandomError> for TensorError
impl From<RandomError> for TensorError
Source§fn from(source: RandomError) -> Self
fn from(source: RandomError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RandomError
impl RefUnwindSafe for RandomError
impl Send for RandomError
impl Sync for RandomError
impl Unpin for RandomError
impl UnwindSafe for RandomError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more