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