pub struct ErrorBounds {
pub lower_bound: Precision,
pub upper_bound: Precision,
pub confidence: Option<Precision>,
pub method: ErrorBoundMethod,
}Expand description
Error bounds for approximate solutions.
Fields§
§lower_bound: PrecisionLower bound on the true error
upper_bound: PrecisionUpper bound on the true error
confidence: Option<Precision>Confidence level (0.0 to 1.0) for probabilistic bounds
method: ErrorBoundMethodMethod used to compute the bounds
Implementations§
Source§impl ErrorBounds
impl ErrorBounds
Sourcepub fn upper_bound_only(upper: Precision, method: ErrorBoundMethod) -> Self
pub fn upper_bound_only(upper: Precision, method: ErrorBoundMethod) -> Self
Create error bounds with only an upper bound.
Sourcepub fn deterministic(lower: Precision, upper: Precision) -> Self
pub fn deterministic(lower: Precision, upper: Precision) -> Self
Create deterministic error bounds.
Sourcepub fn probabilistic(
lower: Precision,
upper: Precision,
confidence: Precision,
) -> Self
pub fn probabilistic( lower: Precision, upper: Precision, confidence: Precision, ) -> Self
Create probabilistic error bounds with confidence level.
Trait Implementations§
Source§impl Clone for ErrorBounds
impl Clone for ErrorBounds
Source§fn clone(&self) -> ErrorBounds
fn clone(&self) -> ErrorBounds
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorBounds
impl Debug for ErrorBounds
Source§impl<'de> Deserialize<'de> for ErrorBounds
impl<'de> Deserialize<'de> for ErrorBounds
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ErrorBounds
impl PartialEq for ErrorBounds
Source§impl Serialize for ErrorBounds
impl Serialize for ErrorBounds
impl StructuralPartialEq for ErrorBounds
Auto Trait Implementations§
impl Freeze for ErrorBounds
impl RefUnwindSafe for ErrorBounds
impl Send for ErrorBounds
impl Sync for ErrorBounds
impl Unpin for ErrorBounds
impl UnwindSafe for ErrorBounds
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