Skip to content

Commit f8a42a1

Browse files
chore: updated according to code review
--- 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: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: passed - 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 --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: passed - task: run_c_examples status: passed - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: passed - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent bd869dc commit f8a42a1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/stats/base/dnanvariancech/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ double stdlib_strided_dnanvariancech( const CBLAS_INT N, const double correction
269269
Computes the [variance][variance] of a double-precision floating-point strided array ignoring `NaN` values and using a one-pass trial mean algorithm and alternative indexing semantics.
270270

271271
```c
272-
const double x[] = { 1.0, -2.0, 2.0 };
272+
const double x[] = { 1.0, -2.0, 0.0/0.0, 2.0 };
273273

274-
double v = stdlib_strided_dnanvariancech_ndarray( 3, 1.0, x, 1, 0 );
274+
double v = stdlib_strided_dnanvariancech_ndarray( 4, 1.0, x, 1, 0 );
275275
// returns ~4.3333
276276
```
277277

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ interface Routine {
8282
* @example
8383
* var Float64Array = require( '@stdlib/array/float64' );
8484
*
85-
* var x = new Float64Array( [ 1.0, -2.0, 2.0 ] );
85+
* var x = new Float64Array( [ 1.0, -2.0, NaN, 2.0 ] );
8686
*
8787
* var v = dnanvariancech.ndarray( x.length, 1, x, 1, 0 );
8888
* // returns ~4.3333

lib/node_modules/@stdlib/stats/base/dnanvariancech/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main( void ) {
3030
const int strideX = 2;
3131

3232
// Compute the variance:
33-
double v = stdlib_strided_dnanvariancech( N, 1, x, strideX );
33+
double v = stdlib_strided_dnanvariancech( N, 1.0, x, strideX );
3434

3535
// Print the result:
3636
printf( "sample variance: %lf\n", v );

lib/node_modules/@stdlib/stats/base/dnanvariancech/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
var uniform = require( '@stdlib/random/base/uniform' );
2222
var filledarrayBy = require( '@stdlib/array/filled-by' );
2323
var bernoulli = require( '@stdlib/random/base/bernoulli' );
24-
var dnanvariancech = require( '@stdlib/stats/base/dnanvariancech' );
24+
var dnanvariancech = require( './../lib' );
2525

2626
function rand() {
2727
if ( bernoulli( 0.8 ) < 1 ) {

0 commit comments

Comments
 (0)