Skip to content

smoothers

Adaptive(/continuous-time) filter implementations.

smoother_adaptive(prior, correction) -> strategy.Strategy ¤

Construct a smoother.

Source code in probdiffeq/solvers/strategies/smoothers.py
 9
10
11
12
13
14
15
16
17
18
19
def smoother_adaptive(prior, correction, /) -> strategy.Strategy:
    """Construct a smoother."""
    extrapolation_impl = _PreconSmoother(*prior)
    return strategy.Strategy(
        extrapolation_impl,
        correction,
        is_suitable_for_save_at=False,
        is_suitable_for_save_every_step=True,
        is_suitable_for_offgrid_marginals=True,
        string_repr=f"<Smoother with {extrapolation_impl}, {correction}>",
    )