2
function preprocess () {
5
function calculate () {
7
$p = "c (" . preg_replace ("/[, ]+/", ", ", getRK_val ("p")) . ")";
9
rk.temp = (qgeom (p = <? echo ($p); ?>, prob = <? getRK ("prob"); ?>, <? getRK ("tail"); ?>, <? getRK("logp"); ?>))
13
function printout () {
16
rk.header ("Geometric quantile", list ("Vector of probabilities", "<? echo ($p); ?>", "Probability of success in each trial", "<? getRK ("prob"); ?>", "Tail", "<? getRK ("tail"); ?>", "Probabilities p are given as", "<? getRK ("logp"); ?>"))
17
cat ("<h3>Geometric quantiles: ", rk.temp, "</h3>")