LOWESS, EMA and Polynominal Trend additions#3
Merged
Conversation
- Add buildEmaTrend, buildPolynomialTrend, buildLowessTrend to series.ts with getEmaAlpha and getLowessBandwidth helpers - Port all three methods to anomaly_detection.py (_build_ema, _build_polynomial_trend, _build_lowess) - Fix LOWESS bug: bandwidth was accepted but ignored; now used as the neighbourhood cutoff and distance normaliser in both TS and Python - Refactor history-analysis.worker.ts to import math from @/cards/history/analysis instead of duplicating it - Widen trend_method union in history-series.ts and NormalizedAnalysis to include ema, polynomial_trend, lowess - Add UI options for all three methods in analysis-trend-group; show window selector for rolling_average, ema, lowess; hide for linear_trend and polynomial_trend - Add chart render options for the three new methods with distinct line styles - Add static fixture files (trend-dataset.json, trend-expected.json) and cross-language spec covering golden master regression and TS/Python consistency - Add README section documenting all trend methods with when-to-use guidance - Add scripts/gen-trend-expected.py for regenerating golden fixtures - version bump from 0.4.2 -> 0.5.0
3ba958e to
fbd9ca9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bandwidthparameter was accepted but never used — distances were normalised by the furthest point instead, making all window sizes produce identical curveshistory-analysis.worker.tsto import math from@/cards/history/analysisinstead of duplicating the implementationsanomaly_detection.pyfor backend trend-residual analysis