Cumsum#

class deeptrack.statistics.Cumsum(feature: Feature | None = None, axis: int | tuple[int, ...] | None = None, distributed: bool = True, **kwargs)#

Bases: Reducer

Compute the cumulative sum along the specified axis.

Parameters#

feature: Feature, optional

If not None, the output of this feature is used as the input.

axis: int or tuple of int or None

The axis or axes along which the cumulative sum is performed. If None, the cumulative sum is performed over all axes.

distributed: bool

Whether to apply the reducer to each image in the input list individually.

**kwargs: Any

Additional keyword arguments passed to the parent class and the cumulative sum function.