Port ToroidalVMRivestDistribution from libDirectional#1595
Merged
FlorianPfaff merged 2 commits intomainfrom Apr 1, 2026
Merged
Port ToroidalVMRivestDistribution from libDirectional#1595FlorianPfaff merged 2 commits intomainfrom
FlorianPfaff merged 2 commits intomainfrom
Conversation
Agent-Logs-Url: https://github.com/FlorianPfaff/PyRecEst/sessions/1e342ef5-dc88-44ad-91de-467da7fa7c06 Co-authored-by: FlorianPfaff <6773539+FlorianPfaff@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
FlorianPfaff
March 31, 2026 23:32
View session
Contributor
✅MegaLinter analysis: Success
See detailed reports in MegaLinter artifacts Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining
|
Contributor
Owner
|
@copilot Can you fix the megalinter errors? |
…ls, fix shift parameter name Agent-Logs-Url: https://github.com/FlorianPfaff/PyRecEst/sessions/92c57208-1113-44b6-b1aa-a4d4504e018f Co-authored-by: FlorianPfaff <6773539+FlorianPfaff@users.noreply.github.com>
auto-merge was automatically disabled
April 1, 2026 15:44
Head branch was pushed to by a user without write access
Contributor
Author
Fixed in 8b974d1. Three issues were addressed:
|
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.

Ports the bivariate von Mises distribution (Rivest 1988 variant) from the MATLAB libDirectional library into PyRecEst.
New distribution:
ToroidalVMRivestDistributionModels dependent unit vectors on the torus via two correlation parameters
alphaandbeta(corresponding toA = diag([alpha, beta])):Changes
hypertorus/toroidal_vm_rivest_distribution.py— new class extendingAbstractToroidalDistributionwith:norm_const: double series over modified Bessel functions (truncated at ±10 terms)pdf: vectorized evaluation supporting batched inputstrigonometric_moment: closed-form forn=1; falls back to numerical otherwisecircular_correlation_jammalamadaka: analytical override of the base class numerical fallbackshift: returns a new instance with shiftedmudistributions/__init__.py— exportsToroidalVMRivestDistributiontests/distributions/test_toroidal_vm_rivest_distribution.py— 15 tests covering normalization, pdf correctness, analytical vs. numerical moments, shift, correlation, and the zero-correlation special case (reduces to independent von Mises product)