Skip to content

Monotonic cubic interpolation extension #3

@csenszike

Description

@csenszike

Hi,

Thank you for your code, it's working perfectly.
In my project I have to interpolate monotonic key points and simple (natural) cubic interpolation sometimes gives non monotonic solution.
I've found the algorithm on Wikipedia with JS example code.
Would it be possible to improve the library with this option (:monotonic=>:boolean)?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions