~ubuntu-branches/ubuntu/karmic/rkward/karmic

« back to all changes in this revision

Viewing changes to rkward/plugins/distributions/uniform_quantiles.php

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2006-11-06 16:30:00 UTC
  • mfrom: (1.2.1 upstream) (3.1.1 feisty)
  • Revision ID: james.westby@ubuntu.com-20061106163000-qi8ju75eqecrfay7
* new upstream release
* depend on either php4-cli or php5-cli

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?
 
2
function preprocess () {
 
3
}
 
4
 
 
5
function calculate () {
 
6
        global $p;
 
7
        $p = "c (" . preg_replace ("/[, ]+/", ", ", getRK_val ("p")) . ")";
 
8
?>
 
9
rk.temp = (qunif (p = <? echo ($p); ?>, min = <? getRK ("min"); ?>, max = <? getRK ("max"); ?>, <? getRK ("tail"); ?>, <? getRK("logp"); ?>))
 
10
<?
 
11
}
 
12
 
 
13
function printout () {
 
14
        global $p;
 
15
?>
 
16
rk.header ("Uniform quantile", list ("Vector of probabilities", "<? echo ($p); ?>", "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 quantiles:  ", rk.temp, "</h3>")
 
18
<?
 
19
}
 
20
 
 
21
function cleanup () {
 
22
?>
 
23
rm (rk.temp)
 
24
<?
 
25
}
 
26
?>