I tried the following commands
using DiffEqUncertainty, Distributions
expectation(g, prob, u0_dist, p)
Of course, the second command is not correct and many arguments are still missing, but it still serves for the purpose of nWME (not Working Minimal Example).
The error message I received is "ERROR: UndefVarError: expectation not defined". Am I missing some other packages to run "expectation" command?
Please help. Thank you.
DiffEqUncertainty
exports expectation
, so it should be defined:
https://github.com/SciML/DiffEqUncertainty.jl/blob/master/src/DiffEqUncertainty.jl
In general when this error occurs despite things being exported by a package it is down to one of two issues:
DiffEqUncertainty.expectation
) should get around the issue.