Skip to content

Instantly share code, notes, and snippets.

@matpalm
Created August 10, 2016 19:22
Show Gist options
  • Save matpalm/26a6c2ca237bc5c03ac8ce5292e698bc to your computer and use it in GitHub Desktop.
Save matpalm/26a6c2ca237bc5c03ac8ce5292e698bc to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys
import numpy as np
print np.percentile(map(float, sys.stdin.readlines()),
np.linspace(0, 100, 11))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment