WrappedScipyODESolution

class probnum.diffeq.perturbed.scipy_wrapper.WrappedScipyODESolution(scipy_solution, rvs)

Bases: ODESolution

ODE solution corresponding to the WrappedScipyRungeKutta.

Attributes Summary

frozen

Whether the posterior is frozen.

locations

Locations of the states of the posterior.

states

States of the posterior.

Methods Summary

__call__(t)

Evaluate the time-continuous solution at time t.

append(location, state)

Append a state to the posterior.

freeze()

Freeze the posterior.

interpolate(t[, previous_index, next_index])

Evaluate the posterior at a measurement-free point.

sample(rng[, t, size])

Sample from the ODE solution.

transform_base_measure_realizations(...)

Transform base-measure-realizations into posteriors samples.

Attributes Documentation

Parameters
frozen

Whether the posterior is frozen.

locations

Locations of the states of the posterior.

states

States of the posterior.

Methods Documentation

__call__(t)[source]

Evaluate the time-continuous solution at time t.

Parameters
Returns

Estimate of the states at time t based on a fourth order polynomial.

Return type

randvars.RandomVariable or randvars._RandomVariableList

append(location, state)

Append a state to the posterior.

Parameters
Return type

None

freeze()

Freeze the posterior.

Return type

None

interpolate(t, previous_index=None, next_index=None)

Evaluate the posterior at a measurement-free point.

Returns

Dense evaluation.

Return type

randvars.RandomVariable or randvars._RandomVariableList

Parameters
sample(rng, t=None, size=())

Sample from the ODE solution.

Parameters
Return type

ndarray

transform_base_measure_realizations(base_measure_realizations, t)

Transform base-measure-realizations into posteriors samples.

Parameters
Returns

Transformed realizations.

Return type

np.ndarray