Expand description
Workload distribution types for modeling read/write ratios.
A Distribution describes the probability distribution over
read fractions in a workload. A read fraction fr means that
fr of the workload is reads and 1 - fr is writes.
Structs§
- Ordered
Float - An
f64usable as a map key.
Enums§
- Distribution
- A distribution over read fractions.
Functions§
- canonicalize_
rw - Resolve the
read_fraction/write_fractionpair into a canonical distribution. Exactly one must beSome.
Type Aliases§
- Canonical
- A canonicalized distribution mapping read fractions to probabilities. All probabilities sum to 1.0 and all fractions are in [0, 1].