//! NIST SP 800-22 §2.1 — Frequency (Monobit) Test.
//!
//! Tests whether the proportion of ones in the sequence is approximately 1/2.
//! A biased generator produces significantly more 0s or 1s than expected.
//!
//! Minimum recommended sequence length: n ≥ 100.
use crate::;
use SQRT_2;
/// Run the frequency (monobit) test on the given bit sequence.
///
/// # Reference
/// Rukhin et al., NIST SP 800-22 Rev 1a (2010), §2.1.