entropiter 0.2.1

A no-dep iterator-compatible frequency and Shannon entropy calculator
Documentation
1
2
3
4
5
6
7
8
9
use entropiter::{ByteHistogram, FrequencyIteratorExt};

fn main() {
    let entropy = [0, 1, 2, 2]
        .into_iter()
        .shannon::<ByteHistogram>()
        .entropy();
    println!("entropy: {}", entropy);
}