Skip to content

Convenience constructors for Interpolations.jl #47

Closed
@jlperla

Description

@jlperla

I find the construction methods for Interpolations.jl to be almost impenetrable. It would be really nice to have some convenience constructors to make things easier to use. Coupled with the () access, I think this makes Interpolations.jl feasible for teaching.

I can't figure out whether we would usually want https://github.com/JuliaMath/Interpolations.jl#gridded-interpolation or https://github.com/JuliaMath/Interpolations.jl#scaled-bsplines ?

The big scenarios I can think of to make easy in 1 dimension are:

  • Linear interpolation on a regular grid
  • Linear interpolation on an irregular grid
  • Cubic spline interpolation on a regular grid
  • Cubic spline interpolation on an irregular grid.
  • Look into the same for 2 or more dimensions

I think it would make sense to figure out:

  • Document the canonical way to do each of them in the current Interpolations.jl
    • Where possible, we can discuss reasonable default parameters
  • Do we need to get Cubic spline interpolation working in the gridded setup in order to support cubic splines on an irregular grid?
  • See what sort of convenience constructor would make sense so these are easier to use.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions