{"id":17204463,"url":"https://github.com/mthh/rbf_interp","last_synced_at":"2025-07-10T08:40:00.279Z","repository":{"id":95037630,"uuid":"99571153","full_name":"mthh/rbf_interp","owner":"mthh","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-07T13:09:56.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-15T02:22:19.523Z","etag":null,"topics":["interpolation","radial-basis-function","rust-library"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mthh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-07T11:31:43.000Z","updated_at":"2024-01-21T09:58:34.000Z","dependencies_parsed_at":"2023-06-11T20:00:25.404Z","dependency_job_id":null,"html_url":"https://github.com/mthh/rbf_interp","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/mthh%2Frbf_interp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthh%2Frbf_interp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthh%2Frbf_interp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthh%2Frbf_interp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mthh","download_url":"https://codeload.github.com/mthh/rbf_interp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227843600,"owners_count":17827987,"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","radial-basis-function","rust-library"],"created_at":"2024-10-15T02:22:03.221Z","updated_at":"2024-12-03T03:06:58.256Z","avatar_url":"https://github.com/mthh.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rbf_interp\n[![Build Status](https://travis-ci.org/mthh/rbf_interp.svg?branch=master)](https://travis-ci.org/mthh/rbf_interp)\n\nRust library for *Radial Basis Function Interpolation*.\n\n**Want to interpolate from a set of known points at any point:**\n```rust\nlet obs_pts = vec![Pt::new(0.0, 0.0, 0.0),\n                   Pt::new(0.0, 100.0, 6.0),\n                   Pt::new(75.0, 25.0, 3.1),\n                   Pt::new(100.0, 75.0, 7.4)];\nlet rbf = Rbf::new(\u0026obs_pts, \"linear\", None);\n// Compute the value at point (0.0, 50.0) :\nlet interpolated_value = rbf.interp_point((0.0, 50.0));\n```\n\n**Want to interpolate from a set of known points on a regular grid:**\n```rust\nlet obs_points_two_stocks = vec![Pt::new(3.5, 3.5, 100.0), Pt::new(6.5, 6.5, 100.0)];\n// Define the bbox as xmin, xmax, ymin, ymax:\nlet bbox = Bbox::new(0.0, 10.0, 0.0, 10.0);\n// Define the resolution on x and y axis:\nlet (reso_x, reso_y) = (40, 40);\n// Get a vector of point with the interpolated value:\nlet res_rbf = rbf_interpolation(reso_x,\n                                reso_y,\n                                \u0026bbox,\n                                \u0026obs_points_two_stocks,\n                                \"inverse_multiquadratic\",\n                                Some(1.66))\n```\n\nVarious radial basis function are implemented :\n\"linear\", \"cubic\", \"thin_plate\", \"quintic\", \"gaussian\", \"multiquadratic\" and \"inverse_multiquadratic\".\n\n## Usage\n```rust\n[dependencies]\nrbf_interp = \"0.1\"\n```\n\n## Example with gnuplot\n```\ncargo run --example plot\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmthh%2Frbf_interp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmthh%2Frbf_interp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmthh%2Frbf_interp/lists"}