SciML / SciML/ModelingToolkitStandardLibrary.jl
Altering the type of interpolation used with SampledData blocks
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 171
- Forks
- 49
- Avg merge
- 15h 50m
- Merged PRs (30d)
- 10
Description
I'd like to use any of the DataInterpolations.jl interpolation types with SampledData blocks. In particular I'm interested in the cubic spline interpolation, but anything past linear would be useful. I think this would involve changing this call to linear_interpolation to something from DataInterpolations.jl or to one of a few new functions.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/Blocks/sources.jl at the linked call around line 600, and review how SampledData currently uses linear_interpolation. Then inspect the DataInterpolations.jl interpolation types and determine an interface for selecting them, including cubic splines. Done means SampledData supports interpolation beyond linear while preserving its existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100