Skip to main content

efficiency

Function efficiency 

Source
pub fn efficiency(phi: f64, tokens: usize) -> f64
Expand description

Compute efficiency ratio: Phi per token. Used by the greedy knapsack in the compiler.