magicDGS / popgenlib

Population Genetics Java Library
MIT License
0 stars 0 forks source link

Remove FastMath.pow in square computation #16

Closed magicDGS closed 7 years ago

magicDGS commented 7 years ago

FastMath.pow is implemented to be efficient for several cases, but it is too much for the use case of a simple square of a variable. This commit change the usage of FastMath.pow(x, 2) to the simpler form x * x.

codecov[bot] commented 7 years ago

Codecov Report

Merging #16 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##              master       #16   +/-   ##
===========================================
  Coverage     95.588%   95.588%           
  Complexity        31        31           
===========================================
  Files              3         3           
  Lines             68        68           
  Branches           4         4           
===========================================
  Hits              65        65           
  Misses             3         3
Impacted Files Coverage Δ Complexity Δ
...icdgs/popgenlib/diversity/NucleotideDiversity.java 95.238% <100%> (ø) 13 <1> (ø) :arrow_down:
codecov[bot] commented 6 years ago

Codecov Report

Merging #16 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##              master       #16   +/-   ##
===========================================
  Coverage     95.588%   95.588%           
  Complexity        31        31           
===========================================
  Files              3         3           
  Lines             68        68           
  Branches           4         4           
===========================================
  Hits              65        65           
  Misses             3         3
Impacted Files Coverage Δ Complexity Δ
...icdgs/popgenlib/diversity/NucleotideDiversity.java 95.238% <100%> (ø) 13 <1> (ø) :arrow_down: