{"id":28122683,"url":"https://github.com/webarkit/oneeurofilter-ts","last_synced_at":"2026-02-14T12:02:21.164Z","repository":{"id":183445058,"uuid":"621967998","full_name":"webarkit/OneEuroFilter-ts","owner":"webarkit","description":"One Euro Filter to Typescript","archived":false,"fork":false,"pushed_at":"2025-03-20T17:16:00.000Z","size":72,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-14T08:14:21.558Z","etag":null,"topics":["filters","oneeurofilter"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webarkit.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}},"created_at":"2023-03-31T19:35:34.000Z","updated_at":"2025-03-20T17:12:10.000Z","dependencies_parsed_at":"2023-07-24T14:45:34.351Z","dependency_job_id":null,"html_url":"https://github.com/webarkit/OneEuroFilter-ts","commit_stats":null,"previous_names":["webarkit/oneeurofilter-ts"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webarkit%2FOneEuroFilter-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webarkit%2FOneEuroFilter-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webarkit%2FOneEuroFilter-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webarkit%2FOneEuroFilter-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webarkit","download_url":"https://codeload.github.com/webarkit/OneEuroFilter-ts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101541,"owners_count":22014909,"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":["filters","oneeurofilter"],"created_at":"2025-05-14T08:14:22.298Z","updated_at":"2026-02-14T12:02:21.108Z","avatar_url":"https://github.com/webarkit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OneEuroFilter-ts\n\nThis code is a translation to Typescript of the original code from [Jaan Tollander](https://jaantollander.com/post/noise-filtering-using-one-euro-filter/#mjx-eqn%3A1).\nIt's not well tested yet, so I can not assure of the correctness of the code.\n\n\n## Installation\n\nInstall with npm:\n```bash\nnpm install @webarkit/oneeurofilter-ts\n```\nInstall with yarn:\n```bash\nyarn add @webarkit/oneeurofilter-ts\n```\n\n## Usage\n\nIn a typescript file:\n```typescript\n// import the OneEuroFilter class into your project\nimport { OneEuroFilter } from \"@webarkit/oneeurofilter-ts\";\n\nlet filterMinCF: number = 0.0001;\nlet filterBeta: number = 0.01;\nconst filter = new OneEuroFilter(filterMinCF, filterBeta);\n\n/* yourData is the data you want to filter, createData() is a dummy function here, \nuse it you method or data instead...\n*/\nlet yourData = createData();\n\n// filter the data (yourData) with the filter method\nfilter.filter(Date.now(), yourData);\n\n// then use yourData...\n\n```\n\nIn a javascript file:\n```javascript\n// import the OneEuroFilter class into your project\nimport { OneEuroFilter } from \"@webarkit/oneeurofilter-ts\";\n\nlet filterMinCF = 0.0001;\nlet filterBeta = 0.01;\nconst filter = new OneEuroFilter(filterMinCF, filterBeta);\n\n/* yourData is the data you want to filter, createData() is a dummy function here, \nuse it you method or data instead...\n*/\nlet yourData = createData();\n\n// filter the data (yourData) with the filter method\nfilter.filter(Date.now(), yourData);\n// then use yourData...\n\n```\n\n\nin a html script tag  with module support:\n```html\n\n\u003cscript type=\"importmap\"\u003e\n    {\n    \"imports\": {\n        \"oef\": \"https://raw.github.com/webarkit/oneeurofilter-ts/main/dist/OneEuroFilter.mjs\",\n        }\n    }\n\u003c/script\u003e\n\n// import the OneEuroFilter class into your project\n\n\u003cscript type=\"module\"\u003e\n\nimport { OneEuroFilter } from \"oef\";\n\nlet filterMinCF = 0.0001;\nlet filterBeta = 0.01;\nconst filter = new OneEuroFilter(filterMinCF, filterBeta);\n\n/* yourData is the data you want to filter, createData() is a dummy function here, \nuse it you method or data instead...\n*/\nlet yourData = createData();\n\n// filter the data (yourData) with the filter method\nfilter.filter(Date.now(), yourData);\n\n// then use yourData...\n\u003c/script\u003e\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebarkit%2Foneeurofilter-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebarkit%2Foneeurofilter-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebarkit%2Foneeurofilter-ts/lists"}