Multiple and Sum Two Arrays
sv = fao:xs([dao], [dai], ra, [ro], [ri], n)
Iterates through the fao
object and multiplies by the values in ra
.
Parameter | Type | Description |
---|---|---|
dao |
integer | Data array offset. Default = 0, modulus |
dai |
number | Data array increments (Default = 1.0) |
ra |
object | Reference float array object |
ro |
integer | Reference array offset (Default = 0) |
ri |
number | Reference array increment (Default = 1.0) |
n |
integer | Count of values to process. (Default = #fao ) |
Returns | Type | Description |
---|---|---|
sv |
number | Sum of all values. |
This is the underlying calculation used for both fao:ft
and fao:wt
.
Does not modify fao
.