Skip to content

Commit d850d1e

Browse files
chore: updated input value
--- 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: na - 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: na - task: run_c_examples status: na - 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: passed - 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 6232a30 commit d850d1e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Computes the [arithmetic mean][arithmetic-mean] of a single-precision floating-p
185185
```c
186186
const double x[] = { 1.0, -2.0, 0.0/0.0, 2.0 };
187187

188-
double v = stdlib_strided_dnanmeanpn( 3, x, 1 );
188+
double v = stdlib_strided_dnanmeanpn( 4, x, 1 );
189189
// returns ~0.33333
190190
```
191191
@@ -206,7 +206,7 @@ Computes the [arithmetic mean][arithmetic-mean] of a single-precision floating-p
206206
```c
207207
const double x[] = { 1.0, -2.0, 0.0/0.0, 2.0 };
208208

209-
double v = stdlib_strided_dnanmeanpn_ndarray( 3, x, 1, 0 );
209+
double v = stdlib_strided_dnanmeanpn_ndarray( 4, x, 1, 0 );
210210
// returns ~0.33333
211211
```
212212

lib/node_modules/@stdlib/stats/base/snanmeanpn/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var snanmeanpn = require( './../lib/snanmeanpn.js' );
3939
* @returns {number} random number or `NaN`
4040
*/
4141
function rand() {
42-
if ( bernoulli( 0.2 ) ) {
42+
if ( bernoulli( 0.8 ) < 1 ) {
4343
return NaN;
4444
}
4545
return uniform( -10.0, 10.0 );

lib/node_modules/@stdlib/stats/base/snanmeanpn/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var opts = {
4848
* @returns {number} random number or `NaN`
4949
*/
5050
function rand() {
51-
if ( bernoulli( 0.2 ) ) {
51+
if ( bernoulli( 0.8 ) < 1 ) {
5252
return NaN;
5353
}
5454
return uniform( -10.0, 10.0 );

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var snanmeanpn = require( './../lib/ndarray.js' );
3939
* @returns {number} random number or `NaN`
4040
*/
4141
function rand() {
42-
if ( bernoulli( 0.2 ) ) {
42+
if ( bernoulli( 0.8 ) < 1 ) {
4343
return NaN;
4444
}
4545
return uniform( -10.0, 10.0 );

lib/node_modules/@stdlib/stats/base/snanmeanpn/benchmark/benchmark.ndarray.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var opts = {
4848
* @returns {number} random number or `NaN`
4949
*/
5050
function rand() {
51-
if ( bernoulli( 0.2 ) ) {
51+
if ( bernoulli( 0.8 ) < 1 ) {
5252
return NaN;
5353
}
5454
return uniform( -10.0, 10.0 );

0 commit comments

Comments
 (0)