stilt.observations.backgrounds.endpoint_weights#

stilt.observations.backgrounds.endpoint_weights(particles, transforms=(), context=None)[source]#

Each particle’s weight at its endpoint after the transforms, indexed by indx.

A transform is a multiplicative factor on foot, so applying the transforms to a table whose foot is one everywhere leaves that factor behind: the averaging kernel and pressure weight of the particle, and the lifetime decay at its endpoint age. Without transforms every weight is one. Divided by the particle count, these are the weights stilt.Footprint.calculate() gives the particles.

Return type:

Series

Parameters:
  • particles (DataFrame)

  • transforms (Sequence[Any])

  • context (TransformContext | None)