DiscreteFiltering

Documentation for DiscreteFiltering.

DiscreteFiltering.S!Method
S!(A, u, t; kwargs...)

Solve ODE for given operator and IC (mutating form, not differentiable).

source
DiscreteFiltering.SMethod
S(A, u₀, t; kwargs...)

Solve ODE for given operator and IC. This form is differentiable.

source
DiscreteFiltering.create_gaussianMethod
create_gaussian(h)

Create Gaussian filter with filter radius h.

The kernel is given by

\[ G(x, \xi) = \sqrt{\frac{3}{2 \pi h^2(x)}} \mathrm{e}^{-\frac{3 (\xi - x)^2}{2 h^2(x)}},\]

and the local transfer function by

\[ \hat{G}_k(x) = \mathrm{e}^{-\frac{2 \pi^2}{3} k^2 h^2(x)}.\]

source
DiscreteFiltering.create_loss_fitMethod
create_loss_fit(u, t; n_sample = size(u, 2), n_time = length(t) - 1, kwargs...)

Create embedded loss function on dataset, evaluating at n_sample random initial conditions and n_time random time steps at each call.

The keyword arguments kwargs are passed to the ODE-solver S.

source
DiscreteFiltering.create_tophatMethod
create_tophat(h)

Create top-hat filter with filter radius h.

The kernel is given by

\[ G(x, \xi) = \begin{cases} \frac{1}{2h(x)} \quad & |\xi - x| \leq h(x), \\ 0 \quad & \text{otherwise}, \end{cases}\]

and the local transfer function by

\[ \hat{G}_k(x) = \frac{\sin \left ( 2 \pi k h(x) \right )}{2 \pi k h(x)}.\]

source
DiscreteFiltering.fit_embeddedMethod
fit_embedded(
    state,
    loss;
    α = 0.001,
    β₁ = 0.9,
    β₂ = 0.999,
    ϵ = 1e-8,
    n_iter = 100,
    testloss,
    ntestloss = 10,
    doplot = true,
)

Fit operator to data while embedded in ODE solver using the ADAM optimizer.

If doplot, a real time plot of the validation performance is plotted.

https://arxiv.org/abs/1412.6980

source