pub struct TestResult {
pub name: &'static str,
pub p_value: f64,
pub note: Option<String>,
}Expand description
The outcome of a single statistical test run against one RNG.
Fields§
§name: &'static strFully-qualified test name, e.g. "nist::frequency".
p_value: f64Computed p-value. NAN indicates a pre-condition failure
(sequence too short, etc.).
note: Option<String>Optional human-readable note (e.g. parameter values used).
Implementations§
Source§impl TestResult
impl TestResult
Sourcepub fn new(name: &'static str, p_value: f64) -> Self
pub fn new(name: &'static str, p_value: f64) -> Self
Construct a result with the default significance level.
Sourcepub fn with_note(
name: &'static str,
p_value: f64,
note: impl Into<String>,
) -> Self
pub fn with_note( name: &'static str, p_value: f64, note: impl Into<String>, ) -> Self
Construct a result with an explanatory note.
Sourcepub fn insufficient(name: &'static str, reason: &str) -> Self
pub fn insufficient(name: &'static str, reason: &str) -> Self
A result whose preconditions were not met (n too small, etc.).
Trait Implementations§
Source§impl Clone for TestResult
impl Clone for TestResult
Source§fn clone(&self) -> TestResult
fn clone(&self) -> TestResult
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 TestResult
impl Debug for TestResult
Auto Trait Implementations§
impl Freeze for TestResult
impl RefUnwindSafe for TestResult
impl Send for TestResult
impl Sync for TestResult
impl Unpin for TestResult
impl UnsafeUnpin for TestResult
impl UnwindSafe for TestResult
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