Skip to content

Commit c0bd5dd

Browse files
authored
Merge pull request #627 from ekhunter123/lcc_update_term
Cast correction term to float in LCCUpdater
2 parents d38a196 + fa46ed4 commit c0bd5dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stonesoup/updater/pointprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from abc import abstractmethod
33

44
from scipy.stats import multivariate_normal
5+
import numpy as np
56

67
from ..base import Base, Property
78
from .kalman import KalmanUpdater
@@ -195,7 +196,7 @@ def _calculate_update_terms(self, updated_sum_list, hypotheses):
195196
misdetected_c2 = (misdetected_weight_sum**2)*l2
196197
self.second_order_cumulant = misdetected_c2 - detected_c2
197198
# Return the l1 correction factor for miss detected weight update
198-
return l1
199+
return np.float64(l1)
199200

200201
@property
201202
def second_order_false_alarm_cumulant(self):

0 commit comments

Comments
 (0)