Skip to content

Commit 8a084d6

Browse files
committed
Auto-generated commit
1 parent e20802a commit 8a084d6

File tree

9 files changed

+21
-18
lines changed

9 files changed

+21
-18
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2026-02-13)
7+
## Unreleased (2026-03-01)
88

99
<section class="features">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`e506e10`](https://github.com/stdlib-js/stdlib/commit/e506e10c96aef1b8f8d9a48ed9c6d289e81a763d) - **docs:** fix spelling _(by Athan Reines)_
2526
- [`ab43b7f`](https://github.com/stdlib-js/stdlib/commit/ab43b7fff2a33d8e101f50d65d18bfa914dbfcf0) - **feat:** add `stats/array/mskmidrange` [(#10221)](https://github.com/stdlib-js/stdlib/pull/10221) _(by Sachin Pangal, Philipp Burckhardt)_
2627

2728
</details>
@@ -34,8 +35,9 @@
3435

3536
### Contributors
3637

37-
A total of 2 people contributed to this release. Thank you to the following contributors:
38+
A total of 3 people contributed to this release. Thank you to the following contributors:
3839

40+
- Athan Reines
3941
- Philipp Burckhardt
4042
- Sachin Pangal
4143

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ limitations under the License.
3333

3434
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
3535

36-
> Calculate the [midrange][midrange] of an array according to a mask.
36+
> Calculate the [mid-range][mid-range] of an array according to a mask.
3737
3838
<section class="intro">
3939

40-
The [**midrange**][midrange] is defined as the arithmetic mean of the maximum and minimum values in a data set. The measure is the midpoint of the range and a measure of central tendency.
40+
The [**mid-range**][mid-range] is defined as the arithmetic mean of the maximum and minimum values in a data set. The measure is the midpoint of the range and a measure of central tendency.
4141

4242
</section>
4343

@@ -73,7 +73,7 @@ var mskmidrange = require( '@stdlib/stats-array-mskmidrange' );
7373

7474
#### mskmidrange( x, mask )
7575

76-
Computes the [midrange][midrange] of an array according to a mask.
76+
Computes the [mid-range][mid-range] of an array according to a mask.
7777

7878
```javascript
7979
var x = [ 1.0, -2.0, 4.0, 2.0 ];
@@ -212,7 +212,7 @@ Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].
212212

213213
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/stats-array-mskmidrange/main/LICENSE
214214

215-
[midrange]: https://en.wikipedia.org/wiki/Mid-range
215+
[mid-range]: https://en.wikipedia.org/wiki/Mid-range
216216

217217
[@stdlib/array/base/accessor]: https://github.com/stdlib-js/array-base-accessor
218218

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
{{alias}}( x, mask )
3-
Computes the midrange of an array according to a mask.
3+
Computes the mid-range of an array according to a mask.
44

55
If a `mask` array element is `0`, the corresponding element in `x` is
66
considered valid and included in computation.
@@ -21,7 +21,7 @@
2121
Returns
2222
-------
2323
out: number
24-
Midrange.
24+
Mid-range.
2525

2626
Examples
2727
--------

docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ import { NumericArray, Collection, AccessorArrayLike } from '@stdlib/types/array
2828
type InputArray = NumericArray | Collection<number> | AccessorArrayLike<number>;
2929

3030
/**
31-
* Computes the midrange of an array according to a mask.
31+
* Computes the mid-range of an array according to a mask.
3232
*
3333
* @param x - input array
3434
* @param mask - mask array
35-
* @returns midrange
35+
* @returns mid-range
3636
*
3737
* @example
3838
* var x = [ 1.0, -2.0, 4.0, 2.0 ];

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'use strict';
2020

2121
/**
22-
* Compute the midrange of an array according to a mask.
22+
* Compute the mid-range of an array according to a mask.
2323
*
2424
* @module @stdlib/stats-array-mskmidrange
2525
*

lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var GENERIC_DTYPE = 'generic';
3838
// MAIN //
3939

4040
/**
41-
* Computes the midrange of an array according to a mask.
41+
* Computes the mid-range of an array according to a mask.
4242
*
4343
* @param {NumericArray} x - input array
4444
* @param {NumericArray} mask - mask array
@@ -47,7 +47,7 @@ var GENERIC_DTYPE = 'generic';
4747
* @throws {TypeError} second argument must be an array-like object
4848
* @throws {TypeError} second argument must have a supported data type
4949
* @throws {RangeError} first and second arguments must have the same length
50-
* @returns {number} midrange
50+
* @returns {number} mid-range
5151
*
5252
* @example
5353
* var x = [ 1.0, -2.0, 4.0, 2.0 ];

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@stdlib/stats-array-mskmidrange",
33
"version": "0.0.0",
4-
"description": "Calculate the midrange of an array according to a mask.",
4+
"description": "Calculate the mid-range of an array according to a mask.",
55
"license": "Apache-2.0",
66
"author": {
77
"name": "The Stdlib Authors",
@@ -89,6 +89,7 @@
8989
"min",
9090
"range",
9191
"midrange",
92+
"mid-range",
9293
"extremes",
9394
"domain",
9495
"extent",

test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ tape( 'the function throws an error if provided unequal length arrays', function
174174
}
175175
});
176176

177-
tape( 'the function calculates the midrange of an array', function test( t ) {
177+
tape( 'the function calculates the mid-range of an array', function test( t ) {
178178
var mask;
179179
var x;
180180
var v;
@@ -227,7 +227,7 @@ tape( 'the function calculates the midrange of an array', function test( t ) {
227227
t.end();
228228
});
229229

230-
tape( 'the function calculates the midrange of an array (accessors)', function test( t ) {
230+
tape( 'the function calculates the mid-range of an array (accessors)', function test( t ) {
231231
var mask;
232232
var x;
233233
var v;
@@ -280,7 +280,7 @@ tape( 'the function calculates the midrange of an array (accessors)', function t
280280
t.end();
281281
});
282282

283-
tape( 'the function calculates the midrange of an array (array-like object)', function test( t ) {
283+
tape( 'the function calculates the mid-range of an array (array-like object)', function test( t ) {
284284
var mask;
285285
var x;
286286
var v;

0 commit comments

Comments
 (0)