1 #ifndef _GAMMALIKE_H_
2 #define _GAMMALIKE_H_
3 /* gamma deviated mutation rate among loci
4 
5 
6  code for the calculation of the gamma likelihood
7  and for its derivatives
8 
9 (c) Peter Beerli 2013 Tallahassee
10 
11 Permission is hereby granted, free of charge, to any person obtaining
12 a copy of this software and associated documentation files (the
13 "Software"), to deal in the Software without restriction, including
14 without limitation the rights to use, copy, modify, merge, publish,
15 distribute, sublicense, and/or sell copies of the Software, and to
16 permit persons to whom the Software is furnished to do so, subject
17 to the following conditions:
18 
19 The above copyright notice and this permission notice shall be
20 included in all copies or substantial portions of the Software.
21 
22 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
26 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
27 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 */
30 
31 #include "migration.h"
32 
33 MYREAL gamma_loci_like (helper_fmt * helper, MYREAL *oparam,
34                                    MYREAL *olparam, MYREAL denom);
35 MYREAL gamma_locus_like (nr_fmt * nr, MYREAL *oparam, MYREAL *olparam,
36                                     MYREAL denom, long locus);
37 void gamma_loci_derivative (helper_fmt * helper);
38 void gamma_locus_derivative (helper_fmt * helper, long locus);
39 void gamma_loci_difference (helper_fmt * helper);
40 #endif
41