Skip to content

Commit 3ca9344

Browse files
committed
add additative noise trait
1 parent 12f3030 commit 3ca9344

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/alg_traits.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,13 @@ as the maximum order of the algorithm.
243243
function alg_order(alg::AbstractODEAlgorithm)
244244
error("Order is not defined for this algorithm")
245245
end
246+
247+
"""
248+
allows_non_wiener_noise(alg::AbstractSDEAlgorithm)
249+
250+
Trait declaration for whether an algorithm allows for non-additive wiener noise.
251+
In general, this is false for any high order (that uses levy areas) or adaptive method.
252+
253+
Defaults to false.
254+
"""
255+
allows_non_wiener_noise(alg::AbstractSDEAlgorithm) = false

0 commit comments

Comments
 (0)