{"id":24313926,"url":"https://github.com/altunenes/asap-rs","last_synced_at":"2026-01-04T16:57:04.752Z","repository":{"id":255446029,"uuid":"852442632","full_name":"altunenes/asap-rs","owner":"altunenes","description":"Rust implementation of Automatic Smoothing for Attention Prioritization for Time Series","archived":false,"fork":false,"pushed_at":"2024-09-10T10:09:29.000Z","size":24,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T02:39:03.313Z","etag":null,"topics":["algorithms","data-normalization","data-smoothing","data-visualization","dimension-reduction","fft","fourier-transform","signal-processing","smoothing","time-series","time-series-analysis"],"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/altunenes.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-04T20:12:45.000Z","updated_at":"2024-11-28T17:14:17.000Z","dependencies_parsed_at":"2024-09-10T11:34:56.029Z","dependency_job_id":null,"html_url":"https://github.com/altunenes/asap-rs","commit_stats":null,"previous_names":["altunenes/asap-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altunenes%2Fasap-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altunenes%2Fasap-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altunenes%2Fasap-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altunenes%2Fasap-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/altunenes","download_url":"https://codeload.github.com/altunenes/asap-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234338043,"owners_count":18816450,"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":["algorithms","data-normalization","data-smoothing","data-visualization","dimension-reduction","fft","fourier-transform","signal-processing","smoothing","time-series","time-series-analysis"],"created_at":"2025-01-17T09:14:51.596Z","updated_at":"2025-09-26T19:31:30.570Z","avatar_url":"https://github.com/altunenes.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asap-rs\n[![crates.io](https://img.shields.io/crates/v/asap-rs.svg)](https://crates.io/crates/asap-rs)\n![License](https://img.shields.io/badge/License-MIT-blue.svg)\n[![Rust](https://github.com/altunenes/asap-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/altunenes/asap-rs/actions/workflows/rust.yml)\n\nA Rust implementation of ASAP (Automatic Smoothing for Attention Prioritization), based on the paper \"ASAP: Prioritizing Attention via Time Series Smoothing\" learn more: [source paper \u0026 js code: ](https://github.com/stanford-futuredata/ASAP)\n\nThis project provides a high-performance Rust implementation of the ASAP algorithm for time series smoothing. It aims to efficiently reduce complexity in time series data while preserving significant trends, optimized for visualization purposes.\n\n![asap](https://github.com/user-attachments/assets/e44b8e44-67b3-417a-a4f5-c8c08dfc1a41)\n\n\n\n### Usage\n\n```rust\nuse asap_rs::smooth;\nfn main() {\n    // Example data\n    let data = [1.0, 3.2, 2.0, 3.0, 4.0, 5.0, 4.0, 3.0, 2.0, 1.0];\n    let resolution = 2;\n    let smoothed_data = smooth(\u0026data, resolution);\n}\n```\n\n### Rust vs JS Performance\n\n```diff\n🦀 Rust: 1.4776ms\n🟨 JS: 8.96ms\n  Data size: 500000\n  Smoothed size: 25\n  Original mean: 2499.97\n  Smoothed mean: 2499.97\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltunenes%2Fasap-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltunenes%2Fasap-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltunenes%2Fasap-rs/lists"}