https://github.com/altunenes/asap-rs

Zero-dependency Rust implementation of ASAP (Automatic Smoothing for Attention Prioritization) for Time Series

https://github.com/altunenes/asap-rs

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

algorithms data-normalization data-smoothing data-visualization dimension-reduction fft fourier-transform signal-processing smoothing time-series time-series-analysis
Last synced: 5 months ago · JSON representation

Repository

Zero-dependency Rust implementation of ASAP (Automatic Smoothing for Attention Prioritization) for Time Series

Basic Info
  • Host: GitHub
  • Owner: altunenes
  • License: mit
  • Language: Rust
  • Default Branch: master
  • Homepage:
  • Size: 47.9 KB
Statistics
  • Stars: 4
  • Watchers: 2
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Topics
algorithms data-normalization data-smoothing data-visualization dimension-reduction fft fourier-transform signal-processing smoothing time-series time-series-analysis
Created over 1 year ago · Last pushed 10 months ago
Metadata Files
Readme

readme.md

asap-rs

crates.io License Rust

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.

asap

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

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
documentation (1) good first issue (1)
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

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 1,651 Total
Rankings
Dependent repos count: 25.7%
Dependent packages count: 34.0%
Average: 52.1%
Downloads: 96.6%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/rust.yml actions
  • actions/checkout v4 composite
Cargo.lock cargo
  • 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
Cargo.toml cargo