pub fn make_freq_table(logits: &[f32]) -> Vec<u32>Expand description
Converts raw logits into a cumulative integer frequency table matching nn.py.
Computes softmax(logits), scales by FREQ_TOTAL, rounds ties to even,
clamps each symbol frequency to at least 1, and returns the cumulative sum.