Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "simulate/iter/hann-pulse/docs/types/index.d"

Index

Interfaces

Type aliases

Functions

Type aliases

Iterator

Iterator: Iter | IterableIterator

Functions

Export assignment iterHannPulse

  • Returns an iterator which generates a Hann pulse waveform.

    Notes

    • If an environment supports Symbol.iterator, the returned iterator is iterable.
    throws

    duration option must be a positive integer

    throws

    period option must be a positive integer

    throws

    offset option must be an integer

    throws

    amplitude option must be a positive number

    throws

    iter option must be a nonnegative integer

    throws

    duration option must be less than or equal to the period

    throws

    duration option must be greater than 2

    Parameters

    • Optional options: Options

      function options

    Returns Iterator

    iterator

    Example

    var opts = {
        'period': 10
    };
    
    var iter = iterHannPulse( opts );
    
    var v = iter.next().value;
    // returns <number>
    
    v = iter.next().value;
    // returns <number>
    
    v = iter.next().value;
    // returns <number>
    
    // ...