#frequency #count #statistics #stats

frequency-ordermap

A counter for observations of things, backed by an OrderMap

1 stable release

Uses old Rust 2015

1.0.0 Mar 25, 2017

#71 in #frequency

MIT license

9KB
155 lines

The Frequency trait represents types that keep track of the observed counts of items. The OrderMapFrequency type is a frequency counter backed by a OrderMap.

Usage

Add frequency and frequency-ordermap to your Cargo.toml:

[dependencies]
frequency = "^1.0.0"
frequency-ordermap = "^1.0.0"

Import both Frequency and OrderMapFrequency:

extern crate frequency;
extern crate frequency_ordermap;

use frequency::Frequency;
use frequency_ordermap::OrderMapFrequency;

lib.rs:

The Frequency trait represents types that keep track of the observed counts of items. The OrderMapFrequency type is a frequency counter backed by a OrderMap.

Usage

Add frequency and frequency-ordermap to your Cargo.toml:

[dependencies]
frequency = "^1.0.0"
frequency-ordermap = "^1.0.0"

Import both Frequency and OrderMapFrequency:

extern crate frequency;
extern crate frequency_ordermap;

use frequency::Frequency;
use frequency_ordermap::OrderMapFrequency;

Dependencies

~490KB