Module stat

Stable statistics accumulator for n-arrays.

Functions

acc (item) add the item to the incremental mean and variance and increase the iteration count
mean () get the incremental mean value
var () get the incremental variance (sigma^2)
iter () get the iteration count
set (new_m, new_v, new_i) set the statistics and counter
reset () reset counter and clear statistics


Functions

acc (item)
add the item to the incremental mean and variance and increase the iteration count

Parameters:

  • item n-array
mean ()
get the incremental mean value
var ()
get the incremental variance (sigma^2)
iter ()
get the iteration count
set (new_m, new_v, new_i)
set the statistics and counter

Parameters:

  • new_m
  • new_v
  • new_i
reset ()
reset counter and clear statistics
generated by LDoc 1.4.3 Last updated 2016-03-11 16:19:27