Skip to content

Commit 5c8b1b4

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <[email protected]>
1 parent ab41736 commit 5c8b1b4

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/stats/base/cuminabs

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/stats/base/cuminabs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ The function has the following additional parameters:
102102
- **offsetX**: starting index for `x`.
103103
- **offsetY**: starting index for `y`.
104104

105-
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, offset parameters support indexing semantics based on a starting indices. For example, to calculate the cumulative minimum absolute value of every other value in `x` starting from the second value and to store in the last `N` elements of `y` starting from the last element
105+
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, offset parameters support indexing semantics based on a starting indices. For example, to calculate the cumulative minimum absolute value of every other element in `x` starting from the second element and to store in the last `N` elements of `y` starting from the last element
106106

107107
```javascript
108108
var x = [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ];
@@ -142,9 +142,9 @@ var Float64Array = require( '@stdlib/array/float64' );
142142
var x = discreteUniform( 10, 0, 100, {
143143
'dtype': 'float64'
144144
});
145-
var y = new Float64Array( x.length );
146-
147145
console.log( x );
146+
147+
var y = new Float64Array( x.length );
148148
console.log( y );
149149

150150
cuminabs( x.length, x, 1, y, -1 );

0 commit comments

Comments
 (0)