Bin data into given number of chunks and pick a representative value for each bin.
github.com/mhyfritz/bin-data
mhyfritz/bin-data