cumPositiveStreak#

swordfish.function.cumPositiveStreak()#

Cumulatively calculate the sum of consecutive positive elements of X after the last non-positive element to the left.

参数:

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