~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/plugins/distributions/clt/plot_uniform_clt.js

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2009-10-26 14:30:00 UTC
  • mfrom: (1.1.13 upstream) (6.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20091026143000-wzwt6cryjnwce23k
Tags: 0.5.2-1
* new upstream release
  closes: #551306 (added support for the new dynamic help system)
* Add "DM-Upload-Allowed: yes" in control
* bump standards version to 3.8.3 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// globals
 
2
var nAvg;
 
3
var nDist;
 
4
php
 
5
include ("plot_clt_common.php");
 
6
 
 
7
function doParameters () {
 
8
echo ('llim <- ' + getValue ("llim") + '; ulim <- ' + getValue ("ulim") + ';\n');
 
9
}
 
10
 
 
11
function doExpVar () {
 
12
echo ('avg.exp <- (llim+ulim)/2;\n');
 
13
echo ('avg.var <- ((ulim-llim)^2/12)/' + nAvg + ';\n');
 
14
}
 
15
 
 
16
function doGenerateData () {
 
17
echo ('data <- matrix(runif(n=' + nAvg*nDist + ', min=llim, max=ulim), nrow=' + nAvg + ');\n');
 
18
}
 
19