count occurances in bins. Useful for power calculations. Replaces hist command from R.
bincounter_cpp(x, bins)
x
numeric vector
bins
Integer vector of counts