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

likelihood-ratio test #90

Merged
merged 7 commits into from
Jul 14, 2024
Merged

likelihood-ratio test #90

merged 7 commits into from
Jul 14, 2024

Conversation

PrzeChoj
Copy link
Owner

No description provided.

@PrzeChoj PrzeChoj self-assigned this Jun 26, 2024
@PrzeChoj PrzeChoj marked this pull request as draft June 26, 2024 11:22
@codecov-commenter
Copy link

codecov-commenter commented Jun 26, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.23%. Comparing base (437c7a6) to head (a178da9).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #90      +/-   ##
==========================================
+ Coverage   94.16%   94.23%   +0.07%     
==========================================
  Files          10       10              
  Lines        2090     2117      +27     
==========================================
+ Hits         1968     1995      +27     
  Misses        122      122              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@ZetrextJG ZetrextJG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, this is exactly how I thought of that implementation

# Since N/p_c is an integer, alpha*p_c %% N == 0 iff alpha %% (N/p_c) == 0
# In other words, alpha must be a multiple of (N/p_1, N/p_2,...,N/p_C)
# (alpha = k*(N/p_1) or k*(N/p_2) or ... or k*(N/p_C) for some integer k (including 0))
# However, alpha must be at most M, and a valid bound from above for integer k is max(p_1,...,p_C).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here M is not defined. I know it is defined in the paper but not really in the comments

possible_alphas <- unique(sort(alpha_matrix[alpha_matrix <= M]))

# Recalculate the r_alpha vector using its definition directly.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nitpick but there is not recalculation of the r_alfa vector, this is the first time the vector is calculated

@PrzeChoj PrzeChoj marked this pull request as ready for review July 14, 2024 14:55
@PrzeChoj PrzeChoj merged commit 5064dc1 into main Jul 14, 2024
9 checks passed
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.

4 participants