projects
/
bluesky.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Keep IP addresses with network measurements.
[bluesky.git]
/
parsetrace
/
gen-cdf.py
1
#!/usr/bin/python
2
#
3
# Convert a file with a sequence of data values to a CDF ready for gnuplot.
4
5
import sys
6
7
data = [float(s.strip()) for s in sys.stdin]
8
data.sort()
9
10
for i in range(len(data)):
11
sys.stdout.write("%s\t%s\n" % ((i + 1.0) / len(data), data[i]))