Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment itercumidrange

  • Returns an iterator which iteratively computes a cumulative mid-range.

    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.
    • If an environment supports Symbol.iterator, the returned iterator is iterable.

    Parameters

    Returns Iterator

    iterator

    Example

    var runif = require( `@stdlib/random/iter/uniform` );
    
    var rand = runif( -10.0, 10.0, {
        'iter': 100
    });
    
    var it = itercumidrange( rand );
    
    var v = it.next().value;
    // returns <number>
    
    v = it.next().value;
    // returns <number>
    
    v = it.next().value;
    // returns <number>
    
    // ...