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
var floor =require( '@stdlib/math/base/special/floor' );
105
101
106
102
functionaccessor( v ) {
107
103
return v *2.0;
@@ -112,16 +108,15 @@ var x0 = new Float64Array( [ 1.0, -2.0, 3.0, -4.0, 5.0, -6.0 ] );
112
108
113
109
// Create an offset view...
114
110
var x1 =newFloat64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
115
-
varN=floor( x0.length/2 );
116
111
117
112
// Access every other element...
118
-
var v =nanminBy( N, x1, 2, accessor );
113
+
var v =nanminBy( 3, x1, 2, accessor );
119
114
// returns -12.0
120
115
```
121
116
122
117
#### nanminBy.ndarray( N, x, strideX, offsetX, clbk\[, thisArg] )
123
118
124
-
Calculates the minimum value of strided array`x` via a callback function, ignoring `NaN` values and using alternative indexing semantics.
119
+
Computes the minimum value of a strided array via a callback function, ignoring `NaN` values and using alternative indexing semantics.
125
120
126
121
```javascript
127
122
functionaccessor( v ) {
@@ -138,7 +133,7 @@ The function has the following additional parameters:
138
133
139
134
-**offsetX**: starting index.
140
135
141
-
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying `buffer`, the `offsetX` parameter supports indexing semantics based on a starting index. For example, to access only the last three elements of `x`
136
+
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameter supports indexing semantics based on a starting index. For example, to access only the last three elements of `x`
142
137
143
138
```javascript
144
139
functionaccessor( v ) {
@@ -183,10 +178,10 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' );
183
178
var nanminBy =require( '@stdlib/stats/base/nanmin-by' );
0 commit comments