pub fn of_cased(text: &str) -> HashMap<char, f64>
Expand description
Returns a frequency map of the given text. The returned map maps characters to
the percent of the entire string that the character makes up. To get the counts of each character,
use frequency::counts()
. This is also case-sensitive; The case-insensitive version is
frequency::of
.
§Performance
This is O(n)
.
§Returns
A map of characters and the percentage of the string they make up.