Thursday, 21 March 2013

1D extrapolation with scipy


from scipy.interpolate import interp1d

f = interp1d(motorExtrap.Frequency.values, 
    motorExtrap['dBP, 72m3perH'].values) # spline coeffs.
plot(motorExtrap.Frequency, motorExtrap['dBP, 72m3perH'], '+-')  # original
plot(powerInMelamine.Freq, f(powerInMelamine.Freq), '+-')        # linearly interpolated.

No comments:

Post a Comment