Skip to content

Commit 1418e40

Browse files
Merge pull request #774 from oameye/add-additative-noise-trait
add additative noise trait
2 parents 91f1651 + 3feb8d2 commit 1418e40

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/alg_traits.jl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,26 @@ function alg_order(alg::AbstractODEAlgorithm)
244244
error("Order is not defined for this algorithm")
245245
end
246246

247+
"""
248+
allows_non_wiener_noise(alg::AbstractSDEAlgorithm)
249+
250+
Trait declaration for whether an algorithm allows for non-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
256+
257+
"""
258+
requires_additive_noise(alg::AbstractSDEAlgorithm)
259+
260+
Trait declaration for whether an algorithm requires additive noise, i.e. the noise
261+
function is not a function of `u`.
262+
263+
Defaults to false
264+
"""
265+
requires_additive_noise(alg::AbstractSDEAlgorithm) = false
266+
247267
EnumX.@enumx AlgorithmInterpretation Ito Stratonovich
248268

249269
"""

0 commit comments

Comments
 (0)