File tree 2 files changed +6
-5
lines changed
base/dists/studentized-range
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
<section class="release" id="unreleased">
6
6
7
- ## Unreleased (2024-06-19 )
7
+ ## Unreleased (2024-07-06 )
8
8
9
9
<section class="packages">
10
10
@@ -74,6 +74,7 @@ A total of 7 people contributed to this release. Thank you to the following cont
74
74
75
75
<details>
76
76
77
+ - [`9669982`](https://github.com/stdlib-js/stdlib/commit/966998214dc39efece0cbd557786bc5dde4adcb8) - **style:** resolve lint error _(by Athan Reines)_
77
78
- [`352993d`](https://github.com/stdlib-js/stdlib/commit/352993db5c4a41180aa78951a0bc1c9faa8aefc4) - **docs:** improve examples of `stats/base/dists/studentized-range` _(by Rejoan Sardar, Philipp Burckhardt)_
78
79
- [`cc5d91f`](https://github.com/stdlib-js/stdlib/commit/cc5d91fb3df5155821344d6fffbeef23f37e8153) - **style:** remove blank line [(#2339)](https://github.com/stdlib-js/stdlib/pull/2339) _(by stdlib-bot, Philipp Burckhardt)_
79
80
- [`922122e`](https://github.com/stdlib-js/stdlib/commit/922122e319c37170f16e14ce5d074273fd7f0675) - **docs:** improve examples for `stats/base/dists/normal` namespace _(by NightKnight, Philipp Burckhardt)_
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