PDFs
Probability density functions for defining DFEs.
beta(xx, params)
params: [alpha, beta]
Source code in dadi/DFE/PDFs.py
27 28 29 30 31 32 | |
biv_ind_gamma_py(xx, yy, params)
Bivariate independent gamma pdf
xx: x-coordinates at which to evaluate. yy: y-coordinates at which to evaluate. params: Input parameters. If len(params) == 2, then params = (alpha,beta) and alpha and beta are assumed to be equal in the two dimensions. If len(params) == 4, then params = (alpha1,alpha2,beta1,beta2). If len(params) in [3,5], then the last parameter is ignored (for compatibility with mixture model functions).
For extensions to correlated gamma distributions, see Kibble (1941) and Smith and Adelfang (1981).
Source code in dadi/DFE/PDFs.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | |
biv_lognormal_py(xx, yy, params)
Bivariate lognormal pdf
xx: x-coordinates at which to evaluate. yy: y-coordinates at which to evaluate. params: Input parameters. If len(params) == 3, then params = (mu,sigma,rho) and mu and sigma are assumed to be equal in the two dimensions. If len(params) == 5, then params = (mu1,mu2,sigma1,sigma2,rho)
Source code in dadi/DFE/PDFs.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
exponential(xx, params)
params: [scale]
Source code in dadi/DFE/PDFs.py
7 8 9 10 11 | |
gamma(xx, params)
params: [alpha, beta] = [shape, scale]
Source code in dadi/DFE/PDFs.py
20 21 22 23 24 25 | |
lognormal(xx, params)
params: [mu, sigma] (in log scale)
Source code in dadi/DFE/PDFs.py
13 14 15 16 17 18 | |
normal(xx, mu, sigma)
params: [mu, sigma]
Source code in dadi/DFE/PDFs.py
34 35 36 37 38 | |