All Projects → SciML → Stochasticdiffeq.jl

SciML / Stochasticdiffeq.jl

Licence: other
Solvers for stochastic differential equations which connect with the scientific machine learning (SciML) ecosystem

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to Stochasticdiffeq.jl

SDETools
Matlab Toolbox for the Numerical Solution of Stochastic Differential Equations
Stars: ✭ 80 (-37.5%)
Mutual labels:  random, noise
Randomkit
Random data generation in Swift
Stars: ✭ 1,458 (+1039.06%)
Mutual labels:  random
Randomcolor
Javascript module for generating random, distinguishable, pleasing colors (ie: for chart series).
Stars: ✭ 83 (-35.16%)
Mutual labels:  random
Audiomate
Python library for handling audio datasets.
Stars: ✭ 99 (-22.66%)
Mutual labels:  noise
Fastnoiselite
Fast Portable Noise Library - C# C++ C Java HLSL
Stars: ✭ 1,263 (+886.72%)
Mutual labels:  noise
Audio Snr
Mixing an audio file with a noise file at any Signal-to-Noise Ratio (SNR)
Stars: ✭ 100 (-21.87%)
Mutual labels:  noise
Eth Random
commit-reveal RNG method in Ethereum
Stars: ✭ 79 (-38.28%)
Mutual labels:  random
Random Image
随机图片服务
Stars: ✭ 118 (-7.81%)
Mutual labels:  random
Rando Php
RandoPhp is a open source library that implements random generators (Integer, Char, Byte, Sequences, Boolean) and take random sample from arrays
Stars: ✭ 107 (-16.41%)
Mutual labels:  random
Octo
A fuzzing library in JavaScript. ✨
Stars: ✭ 96 (-25%)
Mutual labels:  random
Weightedrand
⚖️ Fast weighted random selection for Go
Stars: ✭ 96 (-25%)
Mutual labels:  random
Imscript
a collection of small and standalone utilities for image processing, written in C
Stars: ✭ 86 (-32.81%)
Mutual labels:  noise
Prob.js
Generate random numbers from different probability distributions.
Stars: ✭ 102 (-20.31%)
Mutual labels:  random
Gfx
Convenience package for dealing with graphics in my pixel drawing experiments.
Stars: ✭ 82 (-35.94%)
Mutual labels:  noise
Reproducible Image Denoising State Of The Art
Collection of popular and reproducible image denoising works.
Stars: ✭ 1,776 (+1287.5%)
Mutual labels:  noise
Birdseed
🐦 🎲 Use Twitter's Search API to get random numbers
Stars: ✭ 81 (-36.72%)
Mutual labels:  random
Msnoise
A Python Package for Monitoring Seismic Velocity Changes using Ambient Seismic Noise | http://www.msnoise.org
Stars: ✭ 94 (-26.56%)
Mutual labels:  noise
Erics Magicavoxel Shaders
Shaders for MagicaVoxel including Terrain Generator, Life Game, Waterflow Emulator, Advanced Flood System etc.
Stars: ✭ 99 (-22.66%)
Mutual labels:  noise
Noise
.NET Standard 1.3 implementation of the Noise Protocol Framework (revision 33 of the spec)
Stars: ✭ 124 (-3.12%)
Mutual labels:  noise
Fakedata
Haskell Library for producing quality fake data
Stars: ✭ 118 (-7.81%)
Mutual labels:  random

StochasticDiffEq.jl

Join the chat at https://gitter.im/JuliaDiffEq/Lobby Build Status Build status

StochasticDiffEq.jl is a component package in the DifferentialEquations ecosystem. It holds the stochastic differential equations solvers and utilities. While completely independent and usable on its own, users interested in using this functionality should check out DifferentialEquations.jl.

API

StochasticDiffEq.jl is part of the JuliaDiffEq common interface, but can be used independently of DifferentialEquations.jl. The only requirement is that the user passes an StochasticDiffEq.jl algorithm to solve. For example, we can solve the SDE tutorial from the docs using the SRIW1() algorithm:

using StochasticDiffEq
α=1
β=1
u₀=1/2
f(u,p,t) = α*u
g(u,p,t) = β*u
dt = 1//2^(4)
tspan = (0.0,1.0)
prob = SDEProblem(f,g,u₀,(0.0,1.0))
sol =solve(prob,SRIW1())

The options for solve are defined in the common solver options page and are thoroughly explained in the ODE tutorial.

That example uses the out-of-place syntax f(u,p,t), while the inplace syntax (more efficient for systems of equations) is shown in the Lorenz example:

function lorenz(du,u,p,t)
 du[1] = 10.0(u[2]-u[1])
 du[2] = u[1]*(28.0-u[3]) - u[2]
 du[3] = u[1]*u[2] - (8/3)*u[3]
end

function σ_lorenz(du,u,p,t)
 du[1] = 3.0
 du[2] = 3.0
 du[3] = 3.0
end

prob_sde_lorenz = SDEProblem(lorenz,σ_lorenz,[1.0,0.0,0.0],(0.0,10.0))
sol = solve(prob_sde_lorenz)
plot(sol,vars=(1,2,3))

The problems default to diagonal noise. Non-diagonal noise can be added by setting the noise_prototype:

f = (du,u,p,t) -> du.=1.01u
g = function (du,u,p,t)
  du[1,1] = 0.3u[1]
  du[1,2] = 0.6u[1]
  du[1,3] = 0.9u[1]
  du[1,4] = 0.12u[2]
  du[2,1] = 1.2u[1]
  du[2,2] = 0.2u[2]
  du[2,3] = 0.3u[2]
  du[2,4] = 1.8u[2]
end
prob = SDEProblem(f,g,ones(2),(0.0,1.0),noise_rate_prototype=zeros(2,4))

Colored noise can be set using an AbstractNoiseProcess. For example, we can set the underlying noise process to a GeometricBrownian via:

μ = 1.0
σ = 2.0
W = GeometricBrownianMotionProcess(μ,σ,0.0,1.0,1.0)
# ...
# Define f,g,u0,tspan for a SDEProblem
# ...
prob = SDEProblem(f,g,u0,tspan,noise=W)

StochasticDiffEq.jl also handles solving random ordinary differential equations. This is shown in the RODE tutorial.

using StochasticDiffEq
function f(u,p,t,W)
  2u*sin(W)
end
u0 = 1.00
tspan = (0.0,5.0)
prob = RODEProblem(f,u0,tspan)
sol = solve(prob,RandomEM(),dt=1/100)

Available Solvers

For the list of available solvers, please refer to the DifferentialEquations.jl SDE Solvers page and the RODE Solvers page.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].