Skip to content

feat(devkit): implement EMA, WMA, spike benchmark, and unit tests#210

Merged
Tinna23 merged 2 commits into
StellarCommons:mainfrom
TomikeDS:feat/rolling-window-ema-wma
Apr 25, 2026
Merged

feat(devkit): implement EMA, WMA, spike benchmark, and unit tests#210
Tinna23 merged 2 commits into
StellarCommons:mainfrom
TomikeDS:feat/rolling-window-ema-wma

Conversation

@TomikeDS
Copy link
Copy Markdown
Contributor

Summary

Implements all four issues assigned to tomikeDS.

Changes

  • rolling_window.rs — added RollingWindow::sma, ::ema (configurable alpha), and ::wma (linear weighting, most-recent highest)
  • benchmark.rs — added Benchmark::compare_spike which runs all three algorithms on spike data and prints a comparison table to stdout
  • tests/rolling_window.rs — integration tests asserting correctness of SMA, EMA, and WMA on known sequences

Closes

Closes #147
Closes #148
Closes #149
Closes #150

- Add RollingWindow::ema() with configurable alpha (StellarCommons#147)
- Add RollingWindow::wma() with linear weighting (StellarCommons#148)
- Add Benchmark::compare_spike() printing SMA/EMA/WMA table (StellarCommons#149)
- Add integration tests for all three algorithms (StellarCommons#150)
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 25, 2026

@TomikeDS Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Tinna23 Tinna23 merged commit d6d35c4 into StellarCommons:main Apr 25, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants