Crate entest

Source
Expand description

entest (entropy test) is a program that applies tests to byte sequences stored in files or streams

Re-exports§

pub use entest::Entest;
pub use entest::EntestResult;
pub use chisqr::ChiSquareCalculation;
pub use mc::MonteCarloCalculation;
pub use mean::MeanCalculation;
pub use sc::SerialCorrelationCoefficientCalculation;
pub use shannon::ShannonCalculation;

Modules§

chisqr
the Chi Square test.
entest
entest
mc
the Monte Carlo test.
mean
the Mean entropy test.
sc
the Serial Correlation Coefficient test.
shannon
the Shannon entropy test.

Macros§

dec
macro for create Dec type used by entest

Traits§

DynEntropyTesterDeprecated
old-style, deprecated, kept only for compatibility. please use EntropyTest instead.
EntropyTest
Tests entropy bits of provided byte stream.
EntropyTestExt
extension of EntropyTest. but it is not dyn-compatible (object-safety).
EntropyTesterDeprecated
old-style, deprecated, kept only for compatibility. please use EntropyTest instead.

Functions§

copy_from_slice
copy values from src to dst. returns Ok with copied bytes if success. or return Err if dst.len() < src.len()
error_ratio
define expected value is correct, then calculate error ratio of actual.

Type Aliases§

Dec
64-bit Decimal for lite