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

Fixed error in LHP #249

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

collin-volk
Copy link

Fix for issues #220 and #248. Modified the lhp calculation to set lhp to 0 if both term A and B are negative, and also set lhp to be 0 if it is still negative after adding 5, which is consistent with the following from Johnson and Sugden (2014):

Additionally, if Term A and B are
both negative the LHP is set to zero to avoid
creating a positive value by multiplying two
negative terms. Finally, if values are still not
above zero after the previous addition term, all
negative values of the LHP are set to zero.

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