pub struct RmseValidator<T> {
pub output_file: Option<&'static str>,
pub expected_data: Vec<T>,
pub expected_rmse: f64,
pub rmse_diff_tolerance: f64,
pub data_len_diff_tolerance: u32,
pub output_converter: fn(_: Vec<u8>) -> Vec<T>,
}
Expand description
Validates that the RMSE of output data and the expected data falls within an acceptable range.
Fields§
§output_file: Option<&'static str>
§expected_data: Vec<T>
§expected_rmse: f64
§rmse_diff_tolerance: f64
§data_len_diff_tolerance: u32
§output_converter: fn(_: Vec<u8>) -> Vec<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RmseValidator<T>
impl<T> RefUnwindSafe for RmseValidator<T>where
T: RefUnwindSafe,
impl<T> Send for RmseValidator<T>where
T: Send,
impl<T> Sync for RmseValidator<T>where
T: Sync,
impl<T> Unpin for RmseValidator<T>where
T: Unpin,
impl<T> UnwindSafe for RmseValidator<T>where
T: UnwindSafe,
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