Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface describing dsemwd.

Hierarchy

  • Routine

Callable

  • __call(N: number, correction: number, x: Float64Array, stride: number): number
  • Computes the standard error of the mean for a double-precision floating-point strided array using Welford's algorithm.

    Parameters

    • N: number

      number of indexed elements

    • correction: number

      degrees of freedom adjustment

    • x: Float64Array

      input array

    • stride: number

      stride length

    Returns number

    standard error of the mean

    Example

    var Float64Array = require( `@stdlib/array/float64` );
    
    var x = new Float64Array( [ 1.0, -2.0, 2.0 ] );
    
    var v = dsemwd( x.length, 1, x, 1 );
    // returns ~1.20185

Index

Methods

Methods

ndarray

  • ndarray(N: number, correction: number, x: Float64Array, stride: number, offset: number): number
  • Computes the standard error of the mean for a double-precision floating-point strided array using Welford's algorithm and alternative indexing semantics.

    Parameters

    • N: number

      number of indexed elements

    • correction: number

      degrees of freedom adjustment

    • x: Float64Array

      input array

    • stride: number

      stride length

    • offset: number

      starting index

    Returns number

    standard error of the mean

    Example

    var Float64Array = require( `@stdlib/array/float64` );
    
    var x = new Float64Array( [ 1.0, -2.0, 2.0 ] );
    
    var v = dsemwd.ndarray( x.length, 1, x, 1, 0 );
    // returns ~1.20185