Skip to content

Commit 5bc6fd8

Browse files
committed
chore: minor clean-up
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent a22cda5 commit 5bc6fd8

5 files changed

Lines changed: 9 additions & 12 deletions

File tree

lib/node_modules/@stdlib/stats/base/ndarray/dmskmaxabs/test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,16 @@ tape( 'if provided an empty ndarray, the function returns `NaN`', function test(
132132
t.end();
133133
});
134134

135-
tape( 'if provided an ndarray containing a single element, the function returns the first element', function test( t ) {
135+
tape( 'if provided an ndarray containing a single element, the function returns the absolute value of the first element', function test( t ) {
136136
var mask;
137137
var x;
138138
var v;
139139

140-
x = new Float64Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] );
140+
x = new Float64Array( [ -3.0, -2.0, -4.0, 5.0, 3.0 ] );
141141
mask = new Uint8Array( [ 0, 0, 0, 0, 0 ] );
142142

143143
v = dmskmaxabs( [ vector( 'float64', x, 1, 1, 0 ), vector( 'uint8', mask, 1, 1, 0 ) ] );
144-
t.strictEqual( v, 1.0, 'returns expected value' );
144+
t.strictEqual( v, 3.0, 'returns expected value' );
145145

146146
t.end();
147147
});

lib/node_modules/@stdlib/stats/base/ndarray/nanmskmidrange/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ limitations under the License.
2424
2525
<section class="intro">
2626

27-
The [**mid-range**][mid-range] is defined as the arithmetic mean of the maximum and minimum values. The measure is the midpoint of the range and a measure of central tendency.
27+
The [**mid-range**][mid-range], or **mid-extreme**, is 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.
2828

2929
</section>
3030

@@ -57,9 +57,7 @@ var v = nanmskmidrange( [ x, mask ] );
5757

5858
The function has the following parameters:
5959

60-
- **arrays**: array-like object containing an input ndarray and a mask ndarray.
61-
62-
If a `mask` array element is `0`, the corresponding element in the input ndarray is considered valid and **included** in computation. If a `mask` array element is `1`, the corresponding element in the input ndarray is considered invalid/missing and **excluded** from computation.
60+
- **arrays**: array-like object containing a one-dimensional input ndarray and a one-dimensional mask ndarray.
6361

6462
</section>
6563

@@ -69,6 +67,7 @@ If a `mask` array element is `0`, the corresponding element in the input ndarray
6967

7068
## Notes
7169

70+
- If a mask array element is `0`, the corresponding element in the input ndarray is considered valid and **included** in computation. If a mask array element is `1`, the corresponding element in the input ndarray is considered invalid/missing and **excluded** from computation.
7271
- If provided an empty ndarray or a mask with all elements set to `1`, the function returns `NaN`.
7372

7473
</section>

lib/node_modules/@stdlib/stats/base/ndarray/snanmskmidrange/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ var v = snanmskmidrange( [ x, mask ] );
5959

6060
The function has the following parameters:
6161

62-
- **arrays**: array-like object containing an input ndarray and a mask ndarray.
63-
64-
If a `mask` array element is `0`, the corresponding element in the input ndarray is considered valid and **included** in computation. If a `mask` array element is `1`, the corresponding element in the input ndarray is considered invalid/missing and **excluded** from computation.
62+
- **arrays**: array-like object containing a one-dimensional input ndarray and a one-dimensional mask ndarray.
6563

6664
</section>
6765

@@ -71,6 +69,7 @@ If a `mask` array element is `0`, the corresponding element in the input ndarray
7169

7270
## Notes
7371

72+
- If a mask array element is `0`, the corresponding element in the input ndarray is considered valid and **included** in computation. If a mask array element is `1`, the corresponding element in the input ndarray is considered invalid/missing and **excluded** from computation.
7473
- If provided an empty ndarray or a mask with all elements set to `1`, the function returns `NaN`.
7574

7675
</section>

lib/node_modules/@stdlib/stats/base/ndarray/snanmskmidrange/benchmark/benchmark.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ function createBenchmark( len ) {
6464

6565
return benchmark;
6666

67-
6867
/**
6968
* Benchmark function.
7069
*

lib/node_modules/@stdlib/stats/strided/dnanrangeabs/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ import dnanrangeabs = require( './index' );
141141
dnanrangeabs.ndarray( x.length, x, 1, null ); // $ExpectError
142142
dnanrangeabs.ndarray( x.length, x, 1, undefined ); // $ExpectError
143143
dnanrangeabs.ndarray( x.length, x, 1, [] ); // $ExpectError
144-
dnanrangeabs.ndarray( x.length, x, 1, {}, ); // $ExpectError
144+
dnanrangeabs.ndarray( x.length, x, 1, {} ); // $ExpectError
145145
dnanrangeabs.ndarray( x.length, x, 1, ( x: number ): number => x ); // $ExpectError
146146
}
147147

0 commit comments

Comments
 (0)