Skip to content

Commit 55c45f9

Browse files
committed
chore: suggested changes
--- 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: passed - 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: na - task: lint_license_headers status: passed ---
1 parent 56e7962 commit 55c45f9

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ The function has the following parameters:
133133

134134
- If provided an empty one-dimensional ndarray, the function returns `NaN`.
135135
- If `N - c` is less than or equal to `0` (where `N` corresponds to the number of non-NaN elements in the input ndarray and `c` corresponds to the provided degrees of freedom adjustment), the function returns `NaN`.
136-
- The function ignores `NaN` values when computing the standard deviation.
137136

138137
</section>
139138

@@ -165,7 +164,7 @@ var opts = {
165164
'dtype': 'float64'
166165
};
167166

168-
var xbuf = filledarrayBy( 10, 'float64', rand );
167+
var xbuf = filledarrayBy( 10, opts.dtype, rand );
169168
var x = new ndarray( opts.dtype, xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
170169
console.log( ndarray2array( x ) );
171170

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ var options = {
4343
// FUNCTIONS //
4444

4545
/**
46-
* Returns a random value, possibly NaN.
46+
* Returns a random value.
4747
*
4848
* @private
49-
* @returns {number} random value or `NaN`
49+
* @returns {number} random value
5050
*/
5151
function rand() {
5252
if ( bernoulli( 0.8 ) < 1 ) {
@@ -67,7 +67,7 @@ function createBenchmark( len ) {
6767
var xbuf;
6868
var x;
6969

70-
xbuf = filledarrayBy( len, 'float64', rand );
70+
xbuf = filledarrayBy( len, options.dtype, rand );
7171
x = new ndarray( options.dtype, xbuf, [ len ], [ 1 ], 0, 'row-major' );
7272
correction = scalar2ndarray( 1.0, options );
7373

lib/node_modules/@stdlib/stats/base/ndarray/dnanstdevyc/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var opts = {
3737
'dtype': 'float64'
3838
};
3939

40-
var xbuf = filledarrayBy( 10, 'float64', rand );
40+
var xbuf = filledarrayBy( 10, opts.dtype, rand );
4141
var x = new ndarray( opts.dtype, xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
4242
console.log( ndarray2array( x ) );
4343

0 commit comments

Comments
 (0)