Skip to content

Fix NaN issue in ExpectedRepresentation when PopShares contains 1#6

Closed
cjerzak wants to merge 1 commit intomainfrom
codex/fix-nan-bug-in-expectedrepresentation
Closed

Fix NaN issue in ExpectedRepresentation when PopShares contains 1#6
cjerzak wants to merge 1 commit intomainfrom
codex/fix-nan-bug-in-expectedrepresentation

Conversation

@cjerzak
Copy link
Owner

@cjerzak cjerzak commented Jun 4, 2025

Summary

  • avoid computing log(0) when population share equals 1

Testing

  • R -q -e 'library(testthat); test_dir("DescriptiveRepresentationCalculator/tests/testthat")'

https://chatgpt.com/codex/tasks/task_e_684045691b74832f9bfcf8d85c56a7a5

@cjerzak cjerzak closed this Feb 3, 2026
@cjerzak cjerzak deleted the codex/fix-nan-bug-in-expectedrepresentation branch February 3, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant