cumwsum#

swordfish.function.cumwsum()#

Calculate the cumulative weighted sum of X with Y as the weights.

Parameters:
  • X (Constant) – A scalar/vector/matrix/table/tuple (with scalars or equal-length vectors)/dictionary.

  • Y (Constant) – A scalar/vector/matrix/table/tuple (with scalars or equal-length vectors)/dictionary.

Returns:

A vector of the same length as X. Null values are ignored in the calculation.

Return type:

Constant