Computes the arithmetic mean of a single-precision floating-point strided array, ignoring NaN
values and using ordinary recursive summation.
number of indexed elements
input array
stride length
arithmetic mean
var Float32Array = require( `@stdlib/array/float32` );
var x = new Float32Array( [ 1.0, -2.0, NaN, 2.0 ] );
var v = snanmeanors( x.length, x, 1 );
// returns ~0.3333
Computes the arithmetic mean of a single-precision floating-point strided array, ignoring NaN
values and using ordinary recursive summation and alternative indexing semantics.
number of indexed elements
input array
stride length
starting index
arithmetic mean
var Float32Array = require( `@stdlib/array/float32` );
var x = new Float32Array( [ 1.0, -2.0, NaN, 2.0 ] );
var v = snanmeanors.ndarray( x.length, x, 1, 0 );
// returns ~0.3333
Interface describing snanmeanors`.