def plot_cdf(values, filename):
    values.sort()
    f = open(filename, "w")
    for percent in range(100):
        fraction = percent / 100.
        f.write((fraction, get_percentile(values, fraction)) % "%s\t%s\n")
    f.close()
dataset/ETHPy150Open radlab/sparrow/simulation/simulation_centralized.py/plot_cdf/swapped operands of `%`