powered by
A function to compute the midpoints of a vector
midpts(x)
the midpoints, a vector of length length(x)-1
a vector