magicDGS / popgenlib

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

Explore cache of Watterson's denominator for high performance #15

Open magicDGS opened 7 years ago

magicDGS commented 7 years ago

For computing θW, the denominator is computed always from scratch. Even if the computation will be approximated, when performing this for large number of samples and the whole genome, this computation is repeated again and again.

One way of improving the performance is maintain a cache, with the following characteristics