denisekuehnert / bdmm

Phylodynamics with Migration: A Computational Framework to Quantify Population Structure from Genomic Data
http://mbe.oxfordjournals.org/content/early/2016/05/20/molbev.msw064
GNU General Public License v3.0
4 stars 6 forks source link

changed birthRate and deathRate to Functions #23

Closed alexeid closed 6 years ago

alexeid commented 6 years ago

I have changed the birthRate and deathRate inputs to Functions. This allows them to be produced by expressions so that the parameterization for operators and priors could be something else (like diversification and turnover). Because of slight differences in available methods for Function and RealParameter it was easiest to change some downstream function inputs to double[] rather than Double[]. Ultimately this should be done for all the other canonical parameters.

A more efficient longer term solution to allow alternative parameterizations without interpretation would be for a Parameterization abstraction layer to be added. I started that in one of the other packages but didn't finish it :(