{"id":15295078,"url":"https://github.com/grasbock/makima_spline","last_synced_at":"2025-04-13T15:57:26.819Z","repository":{"id":57636433,"uuid":"304956009","full_name":"GRASBOCK/makima_spline","owner":"GRASBOCK","description":"A implementation of the modified akima interpolation in rust","archived":false,"fork":false,"pushed_at":"2020-10-28T00:17:09.000Z","size":127,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T12:59:09.540Z","etag":null,"topics":["interpolation","interpolation-methods","mathematics","rust","rust-lang","rust-library","spline"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GRASBOCK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-17T19:42:41.000Z","updated_at":"2023-09-12T04:26:01.000Z","dependencies_parsed_at":"2022-08-30T09:40:40.000Z","dependency_job_id":null,"html_url":"https://github.com/GRASBOCK/makima_spline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRASBOCK%2Fmakima_spline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRASBOCK%2Fmakima_spline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRASBOCK%2Fmakima_spline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRASBOCK%2Fmakima_spline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GRASBOCK","download_url":"https://codeload.github.com/GRASBOCK/makima_spline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741160,"owners_count":21154252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["interpolation","interpolation-methods","mathematics","rust","rust-lang","rust-library","spline"],"created_at":"2024-09-30T17:08:32.560Z","updated_at":"2025-04-13T15:57:26.797Z","avatar_url":"https://github.com/GRASBOCK.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# makima_spline\nA implementation of the modified akima interpolation\u003cbr\u003e\n**+** linear extrapolation\u003cbr\u003e\n**+** 1., 2., and 3. order derivatives\u003cbr\u003e\n**+** bicubic interpolation as a feature\n\n\u003cimg src=\"testing/general.png\"\u003e\n\n\n## HowTo\n```rust\nuse makima_spline::Spline;\n```\nyour data is in some format\n```rust\nlet x = vec![1., 2., 3., 4., 5., 6., 7., 8.];\nlet y = vec![-1., -1., -1., 0.0, 1., 1., 1., 1.];\n``` \nconvert to the type used by the spline `Vec\u003c(f64, f64)\u003e`\n```rust\nlet points = makima_spline::vec_to_points(\u0026x, \u0026y);\n```    \nbuild the spline from the data-points\n```rust\nlet spline = Spline::from_vec(points);\n```\nTo sample do this:\n```rust\nlet y = spline.sample(x);\n```\n\u003cimg src=\"testing/step.png\"\u003e\n\n# 2d interpolation\nBased on the [bicubic](https://crates.io/crates/bicubic) crate it is possible to interpolate in two dimensions. \n\nCreate points\n``` rust\nlet x = vec![-1.0, 0.0, 2.0];\nlet y = vec![-0.0, 1.0];\nlet f = vec![5.0, 4.0, 5.0, 1.0, 1.0, 1.0];\n``` \nconstruct `Bicubic` Struct\n``` \nlet bci = makima_spline::n_dimensional::bicubic_from_grid(\u0026x, \u0026y, \u0026f);\n```\n\nThe submodule is called `n_dimensional` in case higher dimensions will be supported in the future, but currently there is only 2d interpolation","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrasbock%2Fmakima_spline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrasbock%2Fmakima_spline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrasbock%2Fmakima_spline/lists"}