Refactor documentation to remove "Zero-Allocation Design" sections across various trend indicators and implement a PowerShell script for automated cleanup

- Updated mathematical foundations and performance profiles where necessary to maintain clarity and coherence.
This commit is contained in:
Miha Kralj
2025-12-21 14:37:44 -08:00
parent 54c309e5cf
commit a7b7207801
65 changed files with 1766 additions and 482 deletions
-13
View File
@@ -41,19 +41,6 @@ $$ RMA_t = \frac{P_t + (N-1) \cdot RMA_{t-1}}{N} $$
RMA is extremely lightweight, requiring only a single multiplication and addition per update.
### Zero-Allocation Design
Since `Rma` wraps `Ema`, it inherits the zero-allocation properties. The calculation is a simple scalar update requiring no heap memory for the calculation step.
| Metric | Score | Notes |
| :--- | :--- | :--- |
| **Throughput** | Extreme | Single multiplication and addition |
| **Complexity** | O(1) | Constant time update |
| **Accuracy** | 4/10 | Significant lag, smooths out details |
| **Timeliness** | 3/10 | Slowest decay of all averages (Lag ≈ N) |
| **Overshoot** | 10/10 | Extremely stable, no overshoot |
| **Smoothness** | 10/10 | Maximum smoothing for volatile data |
## Validation
RMA is validated against TA-Lib's internal macros used for RSI and ATR calculations.