Struct uncertain::ConvergenceError[][src]

pub struct ConvergenceError<F> where
    F: Float
{ /* fields omitted */ }

Information about a failed call to expect.

This struct allows introspection of a failed attempt to calculate the expected value of an Uncertain.

Implementations

impl<F: Float> ConvergenceError<F>[src]

pub fn non_converged_value(&self) -> F[src]

The expected value estimate obtained.

This value is less precise than desired and should be used with caution.

pub fn two_sigma_error(&self) -> F[src]

The two sigma confidence interval around the computed value.

Details

Mathematically, this is an estimate for the standard deviation of the expected value, i.e. 2 * sqrt(var(E(x))).

This value is calculated under the assumption that samples from the original Uncertain are identically and independently distributed.

pub fn desired_precision(&self) -> F[src]

The precision which was originally mandated by the call to Uncertain::expect.

Trait Implementations

impl<F: Clone> Clone for ConvergenceError<F> where
    F: Float
[src]

impl<F: Debug> Debug for ConvergenceError<F> where
    F: Float
[src]

impl<F: Float + Display> Display for ConvergenceError<F>[src]

impl<F: Float + Debug + Display> Error for ConvergenceError<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for ConvergenceError<F> where
    F: RefUnwindSafe

impl<F> Send for ConvergenceError<F> where
    F: Send

impl<F> Sync for ConvergenceError<F> where
    F: Sync

impl<F> Unpin for ConvergenceError<F> where
    F: Unpin

impl<F> UnwindSafe for ConvergenceError<F> where
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,