Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New test for value stream #193

Merged
merged 8 commits into from
Dec 19, 2024
Merged

New test for value stream #193

merged 8 commits into from
Dec 19, 2024

Conversation

inakleinbottle
Copy link
Contributor

I've added a new test for the value stream that tests that the value-stream as the solution to the signature CDE behaves correctly. This also fixes some minor issues in the constructor.

This test verifies the construction and querying of a tensor-valued stream created from signature values of a sampled Brownian stream. It ensures the domain consistency and validates the terminal values using array comparison.
Corrected the sign in the exponent passed to ldexp, ensuring proper computation of the path metadata support. This resolves potential inaccuracies in interval computations caused by the incorrect exponent.
Corrected the conditional logic to properly handle 'support' as an Interval. Added an explicit error throw when 'support' is not an Interval, ensuring clearer feedback for invalid input.
Reversed the order of arguments in tensor multiplication to ensure correct calculations. This change impacts methods using `p_increment_stream->signature` where the initial value must be multiplied first.
This change adds a condition to return the initial value when the input parameter matches the lower bound of the domain. It ensures correct behavior for edge-case input and prevents unnecessary computations.
The increment between two values is not quite the difference of their Lie values as previously used. Instead, it is the log of antipode(previous)*current at each step.
Simplified stream initialization by removing unused resolution, refined initial value assertion, and adjusted query intervals to align with expected behavior. Improved test robustness by introducing an epsilon margin in interval checks.
@inakleinbottle inakleinbottle merged commit 7f9431b into main Dec 19, 2024
3 checks passed
@inakleinbottle inakleinbottle deleted the new-test-for-value-stream branch December 19, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant