Crate nistrs

Source
Expand description

This crate implements statistical tests according to the NIST standard.

§Example usage:

use nistrs::prelude::*;

let data = BitsData::from_binary(vec!(0x23, 0x44));
let result = frequency_test(&data);
print!("Test passed: {}; P-value: {}", result.0, result.1);

Modules§

approximate
block_freq
cusum
fft
freq
linear
longest_run_of_ones
non_overlapping_template
overlapping_template
prelude
The module imports all NIST tests in library.
random_excursions
random_excursions_variant
rank
runs
serial
universal

Structs§

BitsData
Structure contained sequence of bit.

Constants§

TEST_THRESHOLD

Type Aliases§

TestResultT
Return type for most tests. 0 - test passed, 1 - P-value.