4
include ("plot_dist_common.php");
6
function getParameters () {
7
options['ncp'] = getValue ("ncp");
8
options['df'] = getValue ("df");
9
getContRangeParameters ();
11
if (options['is_density']) {
12
options['fun'] = "dt";
14
options['fun'] = "pt";
18
function doHeader () {
19
echo ('rk.header ("Student t ' + options['label'] + ' function", list ("Number of Observations", "' + options['n'] + '", "Minimum", "' + options['min'] + '", "Maximum", "' + options['max'] + '", "Degrees of freedom", "' + options['df'] + '", "Non-centrality", "' + options['ncp'] + '"' + options['log_label'] + options['tail_label'] + ', "Function", "' + options['fun'] + '"));' + "\n");
22
function doFunCall () {
23
echo (options['fun'] + '(x, df=' + options['df'] + ', ncp=' + options['ncp'] + options['log_option'] + options['tail_option'] + ')');