Skip to main content

parse_histribution

Function parse_histribution 

Source
pub fn parse_histribution(spec: &str) -> (Vec<u64>, AliasTableU64)
Expand description

Parse a histribution spec and build an alias table.

Returns (labels, table) where labels[i] is the outcome for alias table index i. Kept as a free function for tests that want the parsed form without constructing the node.