https://github.com/altunenes/asap-rs
Zero-dependency Rust implementation of ASAP (Automatic Smoothing for Attention Prioritization) for Time Series
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.9%) to scientific vocabulary
Keywords
Repository
Zero-dependency Rust implementation of ASAP (Automatic Smoothing for Attention Prioritization) for Time Series
Basic Info
Statistics
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
readme.md
asap-rs
A Rust implementation of ASAP (Automatic Smoothing for Attention Prioritization), based on the paper "ASAP: Prioritizing Attention via Time Series Smoothing" learn more: source paper & js code:
This 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.
Usage
rust
use asap_rs::smooth;
fn main() {
// Example data
let data = [1.0, 3.2, 2.0, 3.0, 4.0, 5.0, 4.0, 3.0, 2.0, 1.0];
let resolution = 2;
let smoothed_data = smooth(&data, resolution);
}
Rust vs JS Performance
diff
🦀 Rust: 1.4776ms
🟨 JS: 8.96ms
Data size: 500000
Smoothed size: 25
Original mean: 2499.97
Smoothed mean: 2499.97
Owner
- Name: Enes
- Login: altunenes
- Kind: user
- Website: altunenes.github.io
- Repositories: 30
- Profile: https://github.com/altunenes
I like science, computers, and budgies :-)
GitHub Events
Total
- Issues event: 1
- Watch event: 1
- Delete event: 1
- Push event: 3
- Pull request event: 2
- Create event: 1
Last Year
- Issues event: 1
- Watch event: 1
- Delete event: 1
- Push event: 3
- Pull request event: 2
- Create event: 1
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 1
- Total pull requests: 6
- Average time to close issues: 7 months
- Average time to close pull requests: less than a minute
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 6
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 6
- Average time to close issues: 7 months
- Average time to close pull requests: less than a minute
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 6
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- altunenes (1)
Pull Request Authors
- altunenes (6)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cargo 1,651 total
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
crates.io: asap-rs
Rust implementation of Automatic Smoothing for Attention Prioritization for Time Series
- Documentation: https://docs.rs/asap-rs/
- License: MIT
-
Latest release: 0.2.0
published 10 months ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v4 composite
- byteorder 1.5.0
- cfg-if 1.0.0
- getrandom 0.2.15
- libc 0.2.158
- ppv-lite86 0.2.20
- proc-macro2 1.0.86
- quote 1.0.37
- rand 0.8.5
- rand_chacha 0.3.1
- rand_core 0.6.4
- syn 2.0.77
- unicode-ident 1.0.12
- wasi 0.11.0+wasi-snapshot-preview1
- zerocopy 0.7.35
- zerocopy-derive 0.7.35