time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (734B)


      1 
      2 {{alias}}()
      3     Returns an accumulator function which incrementally computes a maximum
      4     absolute value.
      5 
      6     If provided a value, the accumulator function returns an updated maximum
      7     absolute value. If not provided a value, the accumulator function returns
      8     the current maximum absolute value.
      9 
     10     If provided `NaN`, the maximum value is `NaN` for all future invocations.
     11 
     12     Returns
     13     -------
     14     acc: Function
     15         Accumulator function.
     16 
     17     Examples
     18     --------
     19     > var accumulator = {{alias}}();
     20     > var m = accumulator()
     21     null
     22     > m = accumulator( 3.14 )
     23     3.14
     24     > m = accumulator( -5.0 )
     25     5.0
     26     > m = accumulator( 10.1 )
     27     10.1
     28     > m = accumulator()
     29     10.1
     30 
     31     See Also
     32     --------
     33