Xrf fit

http://docs.scipy.org/doc/numpy/reference/generated/numpy.clip.html <- `np.clip` doc