pub enum BayesianQuadratureError {
EmptyObservations,
ObservationLengthMismatch,
NonFiniteObservationNode,
NonFiniteObservationValue,
Conditioning(ConditioningError),
Posterior(PosteriorError),
MateriallyNegativePosteriorVariance {
value: f64,
tolerance: f64,
},
}Expand description
Errors raised while constructing a Bayesian quadrature posterior.
Variants§
EmptyObservations
No function observations were supplied.
ObservationLengthMismatch
Observation nodes and function values have different lengths.
NonFiniteObservationNode
At least one observation node is not finite.
NonFiniteObservationValue
At least one observed function value is not finite.
Conditioning(ConditioningError)
Gaussian conditioning failed.
Posterior(PosteriorError)
The computed posterior could not be represented as a valid scalar Gaussian posterior.
MateriallyNegativePosteriorVariance
The posterior variance is negative by more than the documented roundoff tolerance.
Trait Implementations§
Source§impl Clone for BayesianQuadratureError
impl Clone for BayesianQuadratureError
Source§fn clone(&self) -> BayesianQuadratureError
fn clone(&self) -> BayesianQuadratureError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BayesianQuadratureError
Source§impl Debug for BayesianQuadratureError
impl Debug for BayesianQuadratureError
Source§impl Display for BayesianQuadratureError
impl Display for BayesianQuadratureError
Source§impl Error for BayesianQuadratureError
impl Error for BayesianQuadratureError
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<BayesianQuadratureError> for ActiveDesignError
impl From<BayesianQuadratureError> for ActiveDesignError
Source§fn from(error: BayesianQuadratureError) -> Self
fn from(error: BayesianQuadratureError) -> Self
Converts to this type from the input type.
Source§impl From<BayesianQuadratureError> for ActiveSelectionError
impl From<BayesianQuadratureError> for ActiveSelectionError
Source§fn from(error: BayesianQuadratureError) -> Self
fn from(error: BayesianQuadratureError) -> Self
Converts to this type from the input type.
Source§impl From<ConditioningError> for BayesianQuadratureError
impl From<ConditioningError> for BayesianQuadratureError
Source§fn from(error: ConditioningError) -> Self
fn from(error: ConditioningError) -> Self
Converts to this type from the input type.
Source§impl From<PosteriorError> for BayesianQuadratureError
impl From<PosteriorError> for BayesianQuadratureError
Source§fn from(error: PosteriorError) -> Self
fn from(error: PosteriorError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BayesianQuadratureError
impl PartialEq for BayesianQuadratureError
impl StructuralPartialEq for BayesianQuadratureError
Auto Trait Implementations§
impl Freeze for BayesianQuadratureError
impl RefUnwindSafe for BayesianQuadratureError
impl Send for BayesianQuadratureError
impl Sync for BayesianQuadratureError
impl Unpin for BayesianQuadratureError
impl UnsafeUnpin for BayesianQuadratureError
impl UnwindSafe for BayesianQuadratureError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.