Before revision:  We find the value \phi_i that minimises the Kolmogorov--Smirnov distance from a uniform distribution.
After revision:  We find the value \phi_i that minimises the Kolmogorov-Smirnov distance from a uniform distribution.