runtraj.transforms.FirstOrderLifetime#

class runtraj.transforms.FirstOrderLifetime(*, kind: Literal['first_order_lifetime'] = 'first_order_lifetime', lifetime_hours: Annotated[float, Gt(gt=0)]) → None[source]#

Transform that decays each row’s weight by exp(-age / lifetime).

age is the particle’s time since release, its age column (minutes), and the lifetime is the species’ e-folding lifetime.

Methods#

apply(particles[, release, directory])

Return the particles with weight decayed by age.