pub struct ChiSqConfig {
pub samples: usize,
pub bins: usize,
pub z_limit: f64,
}Expand description
Configuration for a chi-squared randomness test.
Fields§
§samples: usizeNumber of random samples drawn per test run.
bins: usizeNumber of equal-width histogram bins over [0, 1).
z_limit: f64Maximum absolute z-score (|z|) permitted for a passing result.
Implementations§
Source§impl ChiSqConfig
impl ChiSqConfig
Sourcepub fn validate(&self) -> Result<(), ChiSqError>
pub fn validate(&self) -> Result<(), ChiSqError>
Validates the configuration, returning a ChiSqError describing the first problem found.
Trait Implementations§
Source§impl Clone for ChiSqConfig
impl Clone for ChiSqConfig
Source§fn clone(&self) -> ChiSqConfig
fn clone(&self) -> ChiSqConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChiSqConfig
Source§impl Debug for ChiSqConfig
impl Debug for ChiSqConfig
Source§impl Default for ChiSqConfig
impl Default for ChiSqConfig
Source§fn default() -> ChiSqConfig
fn default() -> ChiSqConfig
Returns the default configuration: 1,000,000 samples, 256 bins, z-limit 3.0.
Source§impl PartialEq for ChiSqConfig
impl PartialEq for ChiSqConfig
impl StructuralPartialEq for ChiSqConfig
Auto Trait Implementations§
impl Freeze for ChiSqConfig
impl RefUnwindSafe for ChiSqConfig
impl Send for ChiSqConfig
impl Sync for ChiSqConfig
impl Unpin for ChiSqConfig
impl UnsafeUnpin for ChiSqConfig
impl UnwindSafe for ChiSqConfig
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