File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lib/node_modules/@stdlib/stats/base/dists/planck/quantile Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ Evaluates the [quantile function][quantile-function] for a Planck distribution w
54
54
55
55
``` javascript
56
56
var y = quantile ( 0.8 , 0.4 );
57
- // returns 4
57
+ // returns 4.0
58
58
59
59
y = quantile ( 0.5 , 1.4 );
60
- // returns 0
60
+ // returns 0.0
61
61
62
62
y = quantile ( 0.9 , 2.1 );
63
- // returns 1
63
+ // returns 1.0
64
64
```
65
65
66
66
If provided an input probability ` p ` outside the interval ` [0,1] ` , the function returns ` NaN ` .
@@ -97,10 +97,10 @@ Returns a function for evaluating the [quantile function][quantile-function] for
97
97
``` javascript
98
98
var myquantile = quantile .factory ( 0.4 );
99
99
var y = myquantile ( 0.4 );
100
- // returns 1
100
+ // returns 1.0
101
101
102
102
y = myquantile ( 0.8 );
103
- // returns 4
103
+ // returns 4.0
104
104
105
105
y = myquantile ( 1.0 );
106
106
// returns Infinity
You can’t perform that action at this time.
0 commit comments