pub enum UncertainError {
GraphError(String),
ConfidenceError(String),
UnsupportedTypeError(String),
BernoulliDistributionError(String),
NormalDistributionError(String),
UniformDistributionError(String),
SamplingError(String),
PresenceError(String),
}Expand description
Custom error type for the deep_causality_uncertain crate.
Variants§
GraphError(String)
An error originating from the underlying graph structure.
ConfidenceError(String)
An error related to statistical confidence or hypothesis testing.
UnsupportedTypeError(String)
An error indicating that an operation is not supported for a given type.
BernoulliDistributionError(String)
An error occurred creating a Bernoulli distribution, likely due to invalid parameters.
NormalDistributionError(String)
An error occurred creating a Normal , likely due to invalid parameters.
UniformDistributionError(String)
An error occurred creating a Uniform distribution, likely due to invalid parameters.
SamplingError(String)
An error occurred during the sampling process.
PresenceError(String)
An error indicating that a probabilistic value failed to meet the required confidence threshold to be considered definitively present.
Trait Implementations§
Source§impl Debug for UncertainError
impl Debug for UncertainError
Source§impl Display for UncertainError
impl Display for UncertainError
Source§impl Error for UncertainError
impl Error for UncertainError
1.30.0 · 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<BernoulliDistributionError> for UncertainError
impl From<BernoulliDistributionError> for UncertainError
Source§fn from(err: BernoulliDistributionError) -> Self
fn from(err: BernoulliDistributionError) -> Self
Converts to this type from the input type.
Source§impl From<NormalDistributionError> for UncertainError
impl From<NormalDistributionError> for UncertainError
Source§fn from(err: NormalDistributionError) -> Self
fn from(err: NormalDistributionError) -> Self
Converts to this type from the input type.
Source§impl From<UniformDistributionError> for UncertainError
impl From<UniformDistributionError> for UncertainError
Source§fn from(err: UniformDistributionError) -> Self
fn from(err: UniformDistributionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UncertainError
impl RefUnwindSafe for UncertainError
impl Send for UncertainError
impl Sync for UncertainError
impl Unpin for UncertainError
impl UnwindSafe for UncertainError
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