Skip to content

Commit 9b3f913

Browse files
committed
Auto-generated commit
1 parent 80483a6 commit 9b3f913

File tree

7 files changed

+22
-13
lines changed

7 files changed

+22
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3533,6 +3533,10 @@ A total of 559 issues were closed in this release:
35333533

35343534
<details>
35353535

3536+
- [`b256d64`](https://github.com/stdlib-js/stdlib/commit/b256d64a727ea0a266e8fae6ffacd519b55abdb0) - **test:** add test for negative zero _(by Philipp Burckhardt)_
3537+
- [`54b804b`](https://github.com/stdlib-js/stdlib/commit/54b804bba55d0045117f48b267cae91de0d9da8d) - **chore:** fix spacing _(by Philipp Burckhardt)_
3538+
- [`ddac446`](https://github.com/stdlib-js/stdlib/commit/ddac4466bf8851865e8f0260a1562c6db70774d8) - **test:** pass in missing argument _(by Philipp Burckhardt)_
3539+
- [`683e342`](https://github.com/stdlib-js/stdlib/commit/683e34223d282c9021303d0a57c07cffdc431397) - **bench:** add missing :ndarray _(by Philipp Burckhardt)_
35363540
- [`65784f7`](https://github.com/stdlib-js/stdlib/commit/65784f785748107e1fc5d84ad75c9778422e8442) - **feat:** add `stats/strided/midrange-by` [(#9328)](https://github.com/stdlib-js/stdlib/pull/9328) _(by Sachin Pangal, Athan Reines)_
35373541
- [`2c30c8f`](https://github.com/stdlib-js/stdlib/commit/2c30c8fccde4aa82d60552050b8a876ffac9bc6d) - **feat:** add `stats/midrange` [(#9333)](https://github.com/stdlib-js/stdlib/pull/9333) _(by Sachin Pangal, Athan Reines, stdlib-bot)_
35383542
- [`f04a31d`](https://github.com/stdlib-js/stdlib/commit/f04a31de84e7201d3cb54cc39a19eee84f49b407) - **feat:** add `stats/base/ndarray/stdevch` [(#9327)](https://github.com/stdlib-js/stdlib/pull/9327) _(by Pratik, Athan Reines)_

strided/midrange-by/benchmark/benchmark.ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function main() {
9696
for ( i = min; i <= max; i++ ) {
9797
len = pow( 10, i );
9898
f = createBenchmark( len );
99-
bench( format( '%s:len=%d', pkg, len ), f );
99+
bench( format( '%s:ndarray:len=%d', pkg, len ), f );
100100
}
101101
}
102102

strided/midrange-by/lib/accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
5454
* var v = midrangeBy( x.length, arraylike2object( x ), 1, 0, accessor );
5555
* // returns -1.0
5656
*/
57-
function midrangeBy( N, x, strideX, offsetX, clbk, thisArg) {
57+
function midrangeBy( N, x, strideX, offsetX, clbk, thisArg ) {
5858
var xbuf;
5959
var get;
6060
var max;

strided/midrange-by/test/test.ndarray.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
var tape = require( 'tape' );
2424
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2525
var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' );
26+
var isNegativeZero = require( '@stdlib/math/base/assert/is-negative-zero' );
2627
var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
2728
var midrangeBy = require( './../lib/ndarray.js' );
2829

@@ -66,6 +67,10 @@ tape( 'the function calculates the mid-range of a strided array via a callback f
6667
v = midrangeBy( x.length, x, 1, 0, accessor );
6768
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
6869

70+
x = [ -0.0, -0.0 ];
71+
v = midrangeBy( x.length, x, 1, 0, accessor );
72+
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
73+
6974
x = [ NaN ];
7075
v = midrangeBy( x.length, x, 1, 0, accessor );
7176
t.strictEqual( isnan( v ), true, 'returns expected value' );

strided/mskmidrange/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var mskmidrange = require( '@stdlib/stats/strided/mskmidrange' );
4040

4141
#### mskmidrange( N, x, strideX, mask, strideMask )
4242

43-
Computes the [mid-range][mid-range] of a strided array according to a mask.
43+
Computes the [mid-range][mid-range] of a strided array according to a mask.
4444

4545
```javascript
4646
var x = [ 1.0, -2.0, 4.0, 2.0 ];

strided/mskmidrange/benchmark/benchmark.ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function main() {
9292
for ( i = min; i <= max; i++ ) {
9393
len = pow( 10, i );
9494
f = createBenchmark( len );
95-
bench( format( '%s:len=%d', pkg, len ), f );
95+
bench( format( '%s:ndarray:len=%d', pkg, len ), f );
9696
}
9797
}
9898

strided/mskmidrange/docs/types/test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,15 @@ import mskmidrange = require( './index' );
193193
{
194194
const x = new Float64Array( 10 );
195195

196-
mskmidrange.ndarray( x.length, 1, 0, 10, 1, 0 ); // $ExpectError
197-
mskmidrange.ndarray( x.length, 1, 0, '10', 1, 0 ); // $ExpectError
198-
mskmidrange.ndarray( x.length, 1, 0, true, 1, 0 ); // $ExpectError
199-
mskmidrange.ndarray( x.length, 1, 0, false, 1, 0 ); // $ExpectError
200-
mskmidrange.ndarray( x.length, 1, 0, null, 1, 0 ); // $ExpectError
201-
mskmidrange.ndarray( x.length, 1, 0, undefined, 1, 0 ); // $ExpectError
202-
mskmidrange.ndarray( x.length, 1, 0, [ '1' ], 1, 0 ); // $ExpectError
203-
mskmidrange.ndarray( x.length, 1, 0, {}, 1, 0 ); // $ExpectError
204-
mskmidrange.ndarray( x.length, 1, 0, ( x: number ): number => x, 1, 0 ); // $ExpectError
196+
mskmidrange.ndarray( x.length, x, 1, 0, 10, 1, 0 ); // $ExpectError
197+
mskmidrange.ndarray( x.length, x, 1, 0, '10', 1, 0 ); // $ExpectError
198+
mskmidrange.ndarray( x.length, x, 1, 0, true, 1, 0 ); // $ExpectError
199+
mskmidrange.ndarray( x.length, x, 1, 0, false, 1, 0 ); // $ExpectError
200+
mskmidrange.ndarray( x.length, x, 1, 0, null, 1, 0 ); // $ExpectError
201+
mskmidrange.ndarray( x.length, x, 1, 0, undefined, 1, 0 ); // $ExpectError
202+
mskmidrange.ndarray( x.length, x, 1, 0, [ '1' ], 1, 0 ); // $ExpectError
203+
mskmidrange.ndarray( x.length, x, 1, 0, {}, 1, 0 ); // $ExpectError
204+
mskmidrange.ndarray( x.length, x, 1, 0, ( x: number ): number => x, 1, 0 ); // $ExpectError
205205
}
206206

207207
// The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a number...

0 commit comments

Comments
 (0)