Skip to main content

stretch

Function stretch 

Source
pub fn stretch(p: u32) -> i32
Expand description

Convert 12-bit probability to log-odds. Input: p in [1, 4095]. Output: log-odds as scaled integer.