File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/node_modules/@stdlib/stats/base/dists/studentized-range Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,19 +70,19 @@ var tukey = require( '@stdlib/stats/base/dists/studentized-range' );
70
70
/*
71
71
* Let's consider an example where we are analyzing the test scores of students in a class.
72
72
* We're interested in using the Studentized Range Distribution to analyze the range of scores.
73
- * The distribution has parameters: r (number of means), v (degrees of freedom), and nranges (number of ranges).
73
+ * The distribution has parameters: r (number of means), v (degrees of freedom), and n (number of ranges).
74
74
*/
75
75
76
76
var r = 5.0 ;
77
77
var v = 20.0 ;
78
- var nranges = 3.0 ;
78
+ var n = 3.0 ;
79
79
80
80
// CDF can be used to calculate the cumulative distribution function at a specific value:
81
- var out = tukey .cdf ( 2.0 , r, v, nranges );
81
+ var out = tukey .cdf ( 2.0 , r, v, n );
82
82
// returns ~0.074
83
83
84
84
// Quantile can also be used to calculate the quantile function at a specific probability:
85
- out = tukey .quantile ( 0.9 , r, v, nranges );
85
+ out = tukey .quantile ( 0.9 , r, v, n );
86
86
// returns ~4.433
87
87
```
88
88
You can’t perform that action at this time.
0 commit comments