Skip to content

Commit eb57eab

Browse files
committed
fix: documentation
1 parent 05beb00 commit eb57eab

File tree

4 files changed

+14
-18
lines changed

4 files changed

+14
-18
lines changed

docs/tutorials/11_LevyTransitionModels_&_MarginalisedParticleFilter.py

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
=============================================================
55
11 - Tracking linear Levy transition models with the MPF
66
=============================================================
7-
In line with the tutorial examples of the Kalman and particle
8-
filters in Stone Soup, a simplified single-target tracking
9-
example without clutter is provided here to demonstrate the
10-
use of linear transition models driven by non-Gaussian Levy
11-
noise, as well as how to perform inference tasks on this class
7+
In line with the tutorial examples of the Kalman and particle
8+
filters in Stone Soup, a simplified single-target tracking
9+
example without clutter is provided here to demonstrate the
10+
use of linear transition models driven by non-Gaussian Levy
11+
noise, as well as how to perform inference tasks on this class
1212
of models using the Marginalized Particle Filter (MPF).
1313
"""
1414

@@ -22,7 +22,7 @@
2222
from datetime import datetime, timedelta
2323
from stonesoup.types.groundtruth import GroundTruthPath, GroundTruthState
2424
from stonesoup.models.base_driver import NoiseCase
25-
from stonesoup.models.driver import AlphaStableNSMDriver
25+
from stonesoup.models.driver import AlphaStableNSMDriver
2626
from stonesoup.models.transition.levy_linear import LevyLangevin, CombinedLinearLevyTransitionModel
2727

2828
start_time = datetime.now().replace(microsecond=0)
@@ -60,7 +60,7 @@
6060
# %%
6161

6262
# Random seem for reproducibility
63-
seed = 1
63+
seed = 1
6464

6565
# Driving process parameters
6666
mu_W = 0
@@ -103,8 +103,8 @@
103103
# Note that the animated plotter requires a list of timesteps as an input, and that ``tail_length``
104104
# is set to 0.3. This means that each data point will be on display for 30% of the total
105105
# simulation time. The mapping argument is ``[0, 2]`` because those are the :math:`x` and
106-
# :math:`y` position indices from our state vector.
107-
# If a static plotter is preferred, the :class:`Plotterly` class can be used instead.
106+
# :math:`y` position indices from our state vector/Users/chongzhenyuen/Documents/iib-project/stonesoup/stonesoup/models.
107+
# If a static plotter is preferred, the :class:`Plotterly`` class can be used instead.
108108

109109
# from stonesoup.plotter import AnimatedPlotterly
110110
# plotter = AnimatedPlotterly(timesteps, tail_length=1.0, width=600, height=600)
@@ -238,8 +238,3 @@
238238
# .. [#] Lemke, Tatjana, and Simon J. Godsill, 'Inference for models with asymmetric α -stable noise processes', in Siem Jan Koopman, and Neil Shephard (eds), Unobserved Components and Time Series Econometrics (Oxford, 2015; online edn, Oxford Academic, 21 Jan. 2016)
239239
#
240240
# .. [#] S. Godsill, M. Riabiz, and I. Kontoyiannis, “The L ́evy state space model,” in 2019 53rd Asilomar Conference on Signals, Systems, and Computers, 2019, pp. 487–494.
241-
242-
243-
244-
245-

stonesoup/models/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,7 @@ def num_samples(self) -> int:
436436

437437
class LevyModel(Model):
438438
"""
439-
Class to be derived from for Levy models.
440-
For now, we consider only conditionally Gaussian ones
439+
Class to be derived from for conditionally Gaussian Levy models.
441440
"""
442441

443442
driver: Union[ConditionallyGaussianDriver, GaussianDriver] = Property(

stonesoup/models/base_driver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def characteristic_func():
5151
class ConditionallyGaussianDriver(LevyDriver):
5252
"""Conditional Gaussian Levy noise driver.
5353
54-
Noise samples are generated according to the Levy State-Space Model by Godsill et al.
54+
Noise samples are generated according to the Levy State-Space Model, which are Gaussian
55+
when conditioned on latent variables in the form of jump times and sizes. The
56+
latent variables may be non-Gaussian.
5557
"""
5658

5759
c: np.double = Property(doc="Truncation parameter, expected no. jumps per unit time.")

stonesoup/models/transition/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def covar(self, **kwargs):
145145
class CombinedLevyTransitionModel(TransitionModel, LevyModel):
146146
r"""Combine multiple models into a single model by stacking them.
147147
148-
The assumption is that all models are Gaussian.
148+
The assumption is that all models are conditionally Gaussian Levy.
149149
Time Variant, and Time Invariant models can be combined together.
150150
If any of the models are time variant the keyword argument "time_interval"
151151
must be supplied to all methods

0 commit comments

Comments
 (0)