Skip to content

Commit b797797

Browse files
committed
Add measure property to PDAHypothesiser
- Defaults to SquaredMahalanobis, so no impact on legacy.
1 parent 2b3df3e commit b797797

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stonesoup/hypothesiser/probability.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ class PDAHypothesiser(Hypothesiser):
2727

2828
predictor: Predictor = Property(doc="Predict tracks to detection times")
2929
updater: Updater = Property(doc="Updater used to get measurement prediction")
30-
measure: Measure = Property(
31-
doc="Measure class used to calculate the distance between two states.",
32-
default=SquaredMahalanobis(state_covar_inv_cache_size=None))
3330
clutter_spatial_density: float = Property(
3431
default=None,
3532
doc="Spatial density of clutter - tied to probability of false detection. Default is None "
@@ -47,6 +44,9 @@ class PDAHypothesiser(Hypothesiser):
4744
doc="If `True`, hypotheses outside probability gates will be returned. This requires "
4845
"that the clutter spatial density is also provided, as it may not be possible to"
4946
"estimate this. Default `False`")
47+
measure: Measure = Property(
48+
default=SquaredMahalanobis(state_covar_inv_cache_size=None),
49+
doc="Measure class used to calculate the distance between two states.")
5050

5151
def __init__(self, *args, **kwargs):
5252
super().__init__(*args, **kwargs)

0 commit comments

Comments
 (0)