Remove unused n parameter from von_mises_known_concentration#272
Draft
Remove unused n parameter from von_mises_known_concentration#272
n parameter from von_mises_known_concentration#272Conversation
Co-authored-by: williambdean <57733339+williambdean@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix unused n parameter in von_mises_known_concentration
Remove unused Nov 1, 2025
n parameter from von_mises_known_concentration
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #272 +/- ##
==========================================
+ Coverage 95.00% 95.37% +0.36%
==========================================
Files 9 9
Lines 1082 1082
==========================================
+ Hits 1028 1032 +4
+ Misses 54 50 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
von_mises_known_concentrationfunction included an unusednparameter in its signature. For Von Mises distributions with known concentration, the sufficient statistics arecos_totalandsin_totalalone—sample size is mathematically unnecessary.Changes
n: NUMERICparameter from function signature and docstringExample
Note
Line 1725 computes
a_post = kappa * sin_total_post, which appears mathematically incorrect—should likely use resultant lengthsqrt(cos_total_post^2 + sin_total_post^2). This is a separate issue requiring paper verification.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
web.archive.orgcurl -L REDACTED -o paper.pdf(dns block)www.people.cornell.eduwget --timeout=10 REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
von_mises_known_concentrationhas unusednparameter #162✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.