Skip to content

Commit

Permalink
docs: update examples
Browse files Browse the repository at this point in the history
---
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: na
  - task: lint_package_json
    status: na
  - task: lint_repl_help
    status: passed
  - task: lint_javascript_src
    status: passed
  - task: lint_javascript_cli
    status: na
  - task: lint_javascript_examples
    status: na
  - 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: 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
---
  • Loading branch information
aayush0325 committed Jan 20, 2025
1 parent fff367c commit 5bb710e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions lib/node_modules/@stdlib/stats/base/snanmeanors/docs/repl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@

// Using `N` and stride parameters:
> x = new {{alias:@stdlib/array/float32}}( [ -2.0, 1.0, 1.0, -5.0, 2.0, -1.0, NaN ] );
> {{alias}}( 3, x, 2 )
> {{alias}}( 4, x, 2 )
~0.3333

// Using view offsets:
> var x0 = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN ] );
> var x0 = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN, NaN ] );
> var x1 = new {{alias:@stdlib/array/float32}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
> {{alias}}( 3, x1, 2 )
> {{alias}}( 4, x1, 2 )
~-0.3333


Expand Down Expand Up @@ -84,8 +84,8 @@
~0.3333

// Using offset parameter:
> var x = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN ] );
> {{alias}}.ndarray( 3, x, 2, 1 )
> var x = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN, NaN ] );
> {{alias}}.ndarray( 4, x, 2, 1 )
~-0.3333

See Also
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/stats/base/snanmeanors/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
* var Float32Array = require( '@stdlib/array/float32' );
* var snanmeanors = require( '@stdlib/stats/base/snanmeanors' );
*
* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN ] );
* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ] );
*
* var v = snanmeanors.ndarray( 4, x, 2, 1 );
* var v = snanmeanors.ndarray( 5, x, 2, 1 );
* // returns 1.25
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
* @example
* var Float32Array = require( '@stdlib/array/float32' );
*
* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN ] );
* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ] );
*
* var v = snanmeanors( 4, x, 2, 1 );
* var v = snanmeanors( 5, x, 2, 1 );
* // returns 1.25
*/
function snanmeanors( N, x, strideX, offsetX ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ var addon = require( './../src/addon.node' );
* @example
* var Float32Array = require( '@stdlib/array/float32' );
*
* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN ] );
* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ] );
*
* var v = snanmeanors( 4, x, 2, 1 );
* var v = snanmeanors( 5, x, 2, 1 );
* // returns 1.25
*/
function snanmeanors( N, x, strideX, offsetX ) {
Expand Down

0 comments on commit 5bb710e

Please sign in to comment.