Skip to content

Commit

Permalink
build based on b254477
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Oct 1, 2024
1 parent 3f9a296 commit b661c6d
Show file tree
Hide file tree
Showing 13 changed files with 138 additions and 50 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-09-23T15:30:13","documenter_version":"1.7.0"}}
{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-10-01T14:55:30","documenter_version":"1.7.0"}}
11 changes: 6 additions & 5 deletions dev/contents/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dev/contributors_guide/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dev/index.html

Large diffs are not rendered by default.

Binary file modified dev/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion dev/search_index.js

Large diffs are not rendered by default.

Binary file modified dev/thomas_cycl.mp4
Binary file not shown.
55 changes: 54 additions & 1 deletion dev/tutorial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,60 @@ basins, attractors = basins_of_attraction(mapper; show_progress = false)

heatmap_basins_attractors((xg, yg), basins, attractors)

# One last thing to highlight in this short overview are the interactive GUI apps one
# ## Stochastic systems

# DynamicalSystems.jl has some support for stochastic systems
# in the form of Stochastic Differential Equations (SDEs).
# Just like `CoupledODEs`, one can make `CoupledSDEs`!
# For example here is a stochastic version of a FitzHugh-Nagumo model

using StochasticDiffEq # load extention for `CoupledSDEs`

function fitzhugh_nagumo(u, p, t)
x, y = u
ϵ, β, α, γ, κ, I = p
dx = (-α * x^3 + γ * x - κ * y + I) / ϵ
dy = -β * y + x
return SVector(dx, dy)
end
p = [1.,3.,1.,1.,1.,0.]
sde = CoupledSDEs(fitzhugh_nagumo, zeros(2), p; noise_strength = 0.05)

# In this particular example the SDE noise is white noise (Wiener process)
# with strength (σ) of 0.05. See the documentation of `CoupledSDEs` for alternatives.

# In any case, in DynamicalSystems.jl all dynamical systems are part of the same
# interace, stochastic or not. As long as the algorithm is not influenced by stochasticity,
# we can apply it to `CoupledSDEs` just as well. For example, we can study multistability
# in a stochastic system. In contrast to the previous example of the Henon map,
# we have to use an alternative algorithm, because `AttractorsViaRecurrences`
# only works for deterministic systems. So instead we'll use `AttractorsViaFeaturizing`:

featurizer(X, t) = X[end]

mapper = AttractorsViaFeaturizing(sde, featurizer; Ttr = 200, T = 10)

xg = yg = range(-1, 1; length = 101)

sampler, _ = statespace_sampler((xg, yg))

fs = basins_fractions(mapper, sampler)

# and we can see the stored "attractors"

attractors = extract_attractors(mapper)
fig, ax = scatter(attractors[1])
scatter!(attractors[2])
fig

# The mathematical concept of attractors
# doesn't translate trivially to stochastic systems but thankfully
# this system has two fixed point attractors that are only mildly perturbed
# by the noise.

# ## Interactive GUIs

# A particularly useful feature are interactive GUI apps one
# can launch to examine a `DynamicalSystem`. The simplest is [`interactive_trajectory_timeseries`](@ref).
# To actually make it interactive one needs to enable GLMakie.jl as a backend:

Expand Down
Binary file added dev/tutorial/15796ce5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dev/tutorial/6f9b7fb2.png
Binary file not shown.
Binary file added dev/tutorial/96e12e30.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 62 additions & 28 deletions dev/tutorial/index.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions dev/visualizations/index.html

Large diffs are not rendered by default.

0 comments on commit b661c6d

Please sign in to comment.