You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/stats/incr/nanmin/README.md
+5-18Lines changed: 5 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ min = accumulator();
70
70
## Notes
71
71
72
72
- Input values are **not** type checked. If non-numeric inputs are possible, you are advised to type check and handle accordingly **before** passing the value to the accumulator function.
73
-
- If all values provided are `NaN`, the accumulator returns `NaN`.
73
+
- If all provided values are `NaN`, the accumulator returns `null`.
74
74
75
75
</section>
76
76
@@ -81,7 +81,8 @@ min = accumulator();
81
81
## Examples
82
82
83
83
```javascript
84
-
var randu =require( '@stdlib/random/base/randu' );
84
+
var bernoulli =require( '@stdlib/random/base/bernoulli' );
85
+
var uniform =require( '@stdlib/random/base/uniform' );
85
86
var incrnanmin =require( '@stdlib/stats/incr/nanmin' );
- <spanclass="package-name">[`@stdlib/stats/incr/min`][@stdlib/stats/incr/min]</span><spanclass="delimiter">: </span><spanclass="description">compute a minimum value incrementally.</span>
119
-
- <spanclass="package-name">[`@stdlib/stats/incr/mmin`][@stdlib/stats/incr/mmin]</span><spanclass="delimiter">: </span><spanclass="description">compute a moving minimum incrementally.</span>
120
-
- <spanclass="package-name">[`@stdlib/stats/incr/nanmax`][@stdlib/stats/incr/nanmax]</span><spanclass="delimiter">: </span><spanclass="description">compute a maximum value incrementally, ignoring NaN values.</span>
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/stats/incr/nanmin/lib/main.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,13 @@ var incrmin = require( '@stdlib/stats/incr/min' );
37
37
* var min = accumulator();
38
38
* // returns null
39
39
*
40
-
* min = accumulator(3.14);
40
+
* min = accumulator(3.14);
41
41
* // returns 3.14
42
42
*
43
-
* min = accumulator(-5.0);
43
+
* min = accumulator(-5.0);
44
44
* // returns -5.0
45
45
*
46
-
* min = accumulator(NaN);
46
+
* min = accumulator(NaN);
47
47
* // returns -5.0
48
48
*
49
49
* min = accumulator( 10.1 );
@@ -57,7 +57,7 @@ function incrnanmin() {
57
57
returnaccumulator;
58
58
59
59
/**
60
-
* If provided a value, the accumulator function returns an updated minimum value. If not provided a value, the accumulator function returns the current min.
60
+
* If provided a value, the accumulator function returns an updated minimum value. If not provided a value, the accumulator function returns the current minimum value.
0 commit comments