SciML / DiffEqNoiseProcess.jl

A library of noise processes for stochastic systems like stochastic differential equations (SDEs) and other systems that are present in scientific machine learning (SciML)
https://docs.sciml.ai/DiffEqNoiseProcess/stable/
Other
62 stars 30 forks source link

export base #137

Open ArnoStrouwen opened 1 year ago

ArnoStrouwen commented 1 year ago
using DiffEqNoiseProcess
#using DifferentialEquations
u0 = rand(2)
tgrid = 0.0:0.1:10.0
brownian_noise = randn(length(u0)*(length(tgrid)-1))
brownian_noise = reshape(brownian_noise,length(u0),length(tgrid)-1)
brownian_noise = vcat([zeros(length(u0))], [c for c in eachcol(brownian_noise)])
W = NoiseGrid(tgrid,brownian_noise)
prob = NoiseProblem(W, (tgrid[begin], tgrid[end]))

ERROR: UndefVarError: NoiseProblem not defined

frankschae commented 1 year ago

This seems to be the code example from #136.

ArnoStrouwen commented 1 year ago

The using using DifferentialEquations is commented out, leading to a different error.

frankschae commented 1 year ago

oh true -- you're right. Sorry for that! (I ran them straight after each other.)