2
function preprocess () {
5
function calculate () {
7
$q = "c (" . preg_replace ("/[, ]+/", ", ", getRK_val ("q")) . ")";
9
rk.temp = (punif (q = <? echo ($q); ?>, min = <? getRK ("min"); ?>, max = <? getRK ("max"); ?>, <? getRK ("tail"); ?>, <? getRK("logp"); ?>))
13
function printout () {
16
rk.header ("Uniform probability", list ("Vector of quantiles", "<? echo ($q); ?>", "Lower limits of the distribution", "<? getRK ("min"); ?>", "Upper limits of the distribution", "<? getRK ("max"); ?>", "Tail", "<? getRK ("tail"); ?>", "Probabilities p are given as", "<? getRK ("logp"); ?>"))
17
cat ("<h3>Uniform probabilities: ", rk.temp, "</h3>")