Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "stats/iter/midrange/docs/types/index.d"

Index

Functions

Functions

Export assignment itermidrange

  • itermidrange(iterator: Iterator): number | null
  • Computes the mid-range of all iterated values.

    Notes

    • The mid-range is the arithmetic mean of maximum and minimum values. Accordingly, the mid-range is the midpoint of the range and a measure of central tendency.

    Parameters

    Returns number | null

    mid-range

    Example

    var runif = require( `@stdlib/random/iter/uniform` );
    
    var rand = runif( -10.0, 10.0, {
        'iter': 100
    });
    
    var m = itermidrange( rand );
    // returns <number>