[SciPy-user] Sample and hold

John Hunter jdhunter at ace.bsd.uchicago.edu
Sat Jun 3 14:41:39 CDT 2006


>>>>> "Robert" == Robert Kern <robert.kern at gmail.com> writes:

    Robert> def sample_and_hold(x, y, newx): idx = np.searchsorted(x,
    Robert> newx) - 1

Oh yes, much better that mine!  

JDH



More information about the SciPy-user mailing list