SciPy.jl logo
SciPy.jl
  • Home
  • Tips
  • Examples
    • cluster
    • constants
    • fft
    • interpolate
      • scipy.interpolate.interp1d
    • io
    • linalg
    • ndimage
    • odr
    • optimize
    • signal
    • sparse
    • spatial
    • special
    • stats
  • API References
Version
  • Examples
  • interpolate
  • interpolate
Edit on GitHub

scipy.interpolate

scipy.interpolate module

  • Interpolation (scipy.interpolate) Reference Guide

scipy.interpolate.interp1d

  • scipy.interpolate.interp1d Reference Guide
x = collect(0.0:10.0)
y = exp.(-x/3.0)
plot(x, y, "o")
for kind in ["linear", "nearest", "zero", "slinear", "quadratic", "cubic", "previous", "next"]
    f = interpolate.interp1d(x, y, kind=kind)
    xnew = collect(0:0.1:10)
    ynew = f(xnew)
    plot(xnew, ynew, "-", label=kind)
end
legend()

« fftio »

Powered by Documenter.jl and the Julia Programming Language.

Settings


This document was generated with Documenter.jl version 0.27.23 on Sunday 4 December 2022. Using Julia version 1.8.3.