4
include ("plot_dist_common.php");
6
function getParameters () {
7
options['mean'] = getValue ("mean");
8
getDiscontRangeParameters();
10
if (options['is_density']) {
11
options['fun'] = "dpois";
13
options['fun'] = "ppois";
17
function doHeader () {
18
echo ('rk.header ("Poisson ' + options['label'] + ' function", list ("Lower quantile", "' + options['min'] + '", "Upper quantile", "' + options['max'] + '", "Mean", "' + options['mean'] + '"' + options['log_label'] + options['tail_label'] + ', "Function", "' + options['fun'] + '"));' + "\n");
21
function doFunCall () {
22
echo (options['fun'] + '(x, lambda=' + options['mean'] + options['log_option'] + options['tail_option'] + ')');