factor_agent.aggregations.SessionWeightedMean#

class SessionWeightedMean(x, w)[source]#

Bases: SessionAggregation

The mean of x weighted by w over the bars where both have a value; NaN when the weights sum to 0.

Inherited methods and attributes are documented on the base classes linked above.