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