Calculate Statistics on Float Array
rso, min, max, sum, count = fao:stat([idx], [n], [rso])
Push the values from fao
into either a new, or existing, running stats object.
Parameter | Type | Description |
---|---|---|
idx |
integer | Index to start. Default = 1 |
n |
integer | Count of values. Default = #fao |
rso |
object | Running Stats Object to feed values into (i.e. updating rso ) |
Returns | Type | Description |
---|---|---|
rso |
object | Results |
Use ?fao:stat():get()
to pull the values on the LuaDebug terminal.