{"id":17037240,"url":"https://github.com/bast/bilinear","last_synced_at":"2025-03-22T23:13:25.003Z","repository":{"id":49782642,"uuid":"518031849","full_name":"bast/bilinear","owner":"bast","description":"Bilinear interpolation library.","archived":false,"fork":false,"pushed_at":"2022-07-26T12:55:21.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-28T02:42:49.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bast.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}},"created_at":"2022-07-26T11:24:38.000Z","updated_at":"2023-03-05T05:22:05.000Z","dependencies_parsed_at":"2022-08-02T14:45:44.839Z","dependency_job_id":null,"html_url":"https://github.com/bast/bilinear","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/bast%2Fbilinear","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bast%2Fbilinear/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bast%2Fbilinear/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bast%2Fbilinear/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bast","download_url":"https://codeload.github.com/bast/bilinear/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245031516,"owners_count":20549926,"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":[],"created_at":"2024-10-14T08:53:16.118Z","updated_at":"2025-03-22T23:13:24.986Z","avatar_url":"https://github.com/bast.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bilinear interpolation\n\nhttps://en.wikipedia.org/wiki/Bilinear_interpolation\n\n\n## How to use it\n\nNeeds to be documented but currently the best might be to have a look at\n[tests/integration_tests.rs](tests/integration_tests.rs) on how I insert the\ndata and then obtain approximate values.\n\nI first want to test it a bit in another project to stabilize/sharpen the API\nand then I will document in detail how to set it up and evaluate.\n\n\n## Input data can have \"holes\"\n\nWhen interpolating, the code first finds the right \"tile\", then checks that we\nhave data available for all 4 corners. If yes, then the value is interpolated\nand used. If one or more of the 4 corner values are missing, then the function\nevaluates to `None`.\n\n\n## Code development\n\nTesting the code:\n```\n$ cargo test --release -- --nocapture\n```\n\n## Implementation notes\n\n- `HashMap\u003cusize, f64\u003e` turned out significantly faster compared to\n  `HashMap\u003c(usize, usize), f64\u003e`, both when creating and evaluating.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbast%2Fbilinear","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbast%2Fbilinear","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbast%2Fbilinear/lists"}