time-to-botec

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

repl.txt (795B)


      1 
      2 {{alias}}()
      3     Returns an accumulator function which incrementally computes the residual
      4     sum of squares (RSS).
      5 
      6     If provided input values, the accumulator function returns an updated
      7     residual sum of squares. If not provided input values, the accumulator
      8     function returns the current residual sum of squares.
      9 
     10     If provided `NaN` or a value which, when used in computations, results in
     11     `NaN`, the accumulated value is `NaN` for all future invocations.
     12 
     13     Returns
     14     -------
     15     acc: Function
     16         Accumulator function.
     17 
     18     Examples
     19     --------
     20     > var accumulator = {{alias}}();
     21     > var r = accumulator()
     22     null
     23     > r = accumulator( 2.0, 3.0 )
     24     1.0
     25     > r = accumulator( -5.0, 2.0 )
     26     50.0
     27     > r = accumulator()
     28     50.0
     29 
     30     See Also
     31     --------
     32