We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The IntegerGene::mean and LongGene::mean method my be overflow on negative allele values.
IntegerGene::mean
LongGene::mean
Using (x&y)+((x^y)>>1) for calculating the average of two integer values.
(x&y)+((x^y)>>1)
http://aggregate.org/MAGIC/#Average%20of%20Integers
The text was updated successfully, but these errors were encountered:
#791: Fix Integer/LongGene::mean underflow.
88718b7
Merge pull request #792 from jenetics/issues/JENETICS-791-mean_overflow
286021f
Merged into r7.0.0 branch.
Sorry, something went wrong.
jenetics
No branches or pull requests
The
IntegerGene::mean
andLongGene::mean
method my be overflow on negative allele values.Using
(x&y)+((x^y)>>1)
for calculating the average of two integer values.http://aggregate.org/MAGIC/#Average%20of%20Integers
The text was updated successfully, but these errors were encountered: