Skip to content

Commit 2ab4734

Browse files
committed
chore: 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: na - 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 ffee9eb commit 2ab4734

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ var ndarray = require( '@stdlib/ndarray/base/ctor' );
107107
var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
108108

109109
var opts = {
110-
'dtype': 'float64'
110+
'dtype': 'generic'
111111
};
112112

113113
var xbuf = [ 1.0, -2.0, 2.0 ];
@@ -145,7 +145,6 @@ The function has the following parameters:
145145

146146
```javascript
147147
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
148-
var Float64Array = require( '@stdlib/array/float64' );
149148
var ndarray = require( '@stdlib/ndarray/base/ctor' );
150149
var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
151150
var ndarray2array = require( '@stdlib/ndarray/to-array' );

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var stdev = require( './../lib' );
3434
// VARIABLES //
3535

3636
var options = {
37-
'dtype': 'float64'
37+
'dtype': 'generic'
3838
};
3939

4040

lib/node_modules/@stdlib/stats/base/ndarray/stdev/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
4444
* var v = stdev( [ x, correction ] );
4545
* // returns ~2.0817
4646
*/
47-
declare function stdev<T extends typedndarray = typedndarray>( arrays: [ T, T ] ): number;
47+
declare function stdev<T extends typedndarray<number> = typedndarray<number>>( arrays: [ T, T ] ): number;
4848

4949

5050
// EXPORTS //

lib/node_modules/@stdlib/stats/base/ndarray/stdev/docs/types/test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ import stdev = require( './index' );
3030
const x = zeros( [ 10 ], {
3131
'dtype': 'float64'
3232
});
33-
const correction = scalar2ndarray( 1.0, { 'dtype': 'float64' } );
33+
const correction = scalar2ndarray( 1.0, {
34+
'dtype': 'float64'
35+
});
3436

3537
stdev( [ x, correction ] ); // $ExpectType number
3638
}
@@ -53,7 +55,9 @@ import stdev = require( './index' );
5355
const x = zeros( [ 10 ], {
5456
'dtype': 'float64'
5557
});
56-
const correction = scalar2ndarray( 1.0, { 'dtype': 'float64' } );
58+
const correction = scalar2ndarray( 1.0, {
59+
'dtype': 'float64'
60+
});
5761

5862
stdev(); // $ExpectError
5963
stdev( [ x, correction ], 10 ); // $ExpectError

0 commit comments

Comments
 (0)