pub struct ErrorMetrics {
pub l2_relative: f64,
pub l2_absolute: f64,
pub linf: f64,
pub mean_absolute: f64,
pub rms: f64,
pub max_relative: f64,
pub correlation: f64,
pub pointwise_errors: Vec<f64>,
}Expand description
Error metrics
Fields§
§l2_relative: f64Relative L2 error: ||p_bem - p_analytical||₂ / ||p_analytical||₂
l2_absolute: f64Absolute L2 error: ||p_bem - p_analytical||₂
linf: f64L∞ error: max|p_bem - p_analytical|
mean_absolute: f64Mean absolute error
rms: f64RMS error
max_relative: f64Maximum relative error at any point
correlation: f64Correlation coefficient
pointwise_errors: Vec<f64>Pointwise errors (for plotting)
Implementations§
Trait Implementations§
Source§impl Clone for ErrorMetrics
impl Clone for ErrorMetrics
Source§fn clone(&self) -> ErrorMetrics
fn clone(&self) -> ErrorMetrics
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 ErrorMetrics
impl Debug for ErrorMetrics
Source§impl<'de> Deserialize<'de> for ErrorMetrics
impl<'de> Deserialize<'de> for ErrorMetrics
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
Auto Trait Implementations§
impl Freeze for ErrorMetrics
impl RefUnwindSafe for ErrorMetrics
impl Send for ErrorMetrics
impl Sync for ErrorMetrics
impl Unpin for ErrorMetrics
impl UnwindSafe for ErrorMetrics
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more