Debian Codegraph @

res/SubstitutionClasses/Heterogeneity/Beta-Gamma

raw
1 global shapeParameterP = 1;
2 global shapeParameterQ = 1;
3 shapeParameterP:>0.05;shapeParameterP:<85;
4 shapeParameterQ:>0.05;shapeParameterQ:<85;
5 category categoryPlaceholderPC = (rateClassCount-1, EQUAL, MEAN,
6 _x_^(shapeParameterP-1)*(1-_x_)^(shapeParameterQ-1)/Beta(shapeParameterP,shapeParameterQ), /* density */
7 IBeta(_x_,shapeParameterP,shapeParameterQ), /*CDF*/
8 0, /*left bound*/
9 1, /*right bound*/
10 IBeta(_x_,shapeParameterP+1,shapeParameterQ)*shapeParameterP/(shapeParameterP+shapeParameterQ)
11 );
12
13 global shapeParameter_alpha = .5;
14 shapeParameter_alpha:>0.01;shapeParameter_alpha:<100;
15 category categoryPlaceholder = (rateClassCount, categoryPlaceholderPC, MEAN,
16 GammaDist(_x_,shapeParameter_alpha,shapeParameter_alpha),
17 CGammaDist(_x_,shapeParameter_alpha,shapeParameter_alpha),
18 0 ,
19 1e25,
20 CGammaDist(_x_,shapeParameter_alpha+1,shapeParameter_alpha)
21 );