5 import numpy.numarray.mlab as m
8 fmt = '%(min)s,%(mean)s,%(max)s,%(std)s'
19 for n, l in enumerate(sys.stdin):
24 fields = dict([('$'+str(int(k)+1), float(v.strip()))
25 for k, v in enumerate(l.split(sep))])
26 v = float(eval(re.sub(r'(\$\d+)', r'%(\1)f', exp) % fields))
32 vars = dict(min=min(vals), mean=m.mean(vals), max=max(vals), std=m.std(vals))