if yp is None:
            yp = slopes(x, y, method, monotone=monotone)