Repository navigation
docs: MaxDrawdown warms up over period and updates in amortised O(1) - #126
Merged
Merged
Conversation
The page, the overview row and the warmup table gave a warmup of 1; MaxDrawdown returns None until the window holds period values. The streaming example unwrapped update and would panic during that warmup. The cost note described a deque that never made update O(1); the indicator now keeps the window's running peaks with the low of each segment, and the page says how. The edge cases cite the unit tests that pin them, including the non-positive peak and non-finite input.
Deploying wickra-docs with
|
| Latest commit: |
8f461a0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c79744ce.wickra-docs.pages.dev |
| Branch Preview URL: | https://docs-max-drawdown-warmup-and.wickra-docs.pages.dev |
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.
The MaxDrawdown page, its overview row and the warmup table gave a warmup of 1.
MaxDrawdownreturnsNoneuntil the window holdsperiodvalues, so the streaming example, which unwrappedupdate, would panic during that warmup.The cost note described a deque that never made
updateO(1). Since wickra #493 the indicator keeps the window's running peaks together with the low of each segment, and the page now explains how.The edge cases cite the unit tests that pin them, including the non-positive peak and the non-finite input.
The cost text describes the amortised update from wickra #493, so this merges after the next wickra release.