Skip to content

Commit 79b2994

Browse files
committed
fix: replace model_id in NVM functions
1 parent 92d9670 commit 79b2994

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

stonesoup/models/base_driver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def _jump_power(self, jsizes: np.ndarray) -> np.ndarray:
263263
return jsizes
264264

265265
def _centering(
266-
self, e_ft: np.ndarray, truncation: float, model_id: Optional[int] = None
266+
self, e_ft: np.ndarray, truncation: float, mu_W: float
267267
) -> StateVector:
268268
m = e_ft.shape[0]
269269
return np.zeros((m, 1))

stonesoup/models/driver.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ def _thinning_probabilities(self, jsizes: np.ndarray) -> np.ndarray:
158158
return (1.0 + self.beta * jsizes) * np.exp(-self.beta * jsizes) # (n_jumps, n_samples)
159159

160160
def _residual_covar(
161-
self, e_ft: np.ndarray, truncation: float, model_id: int | None = None
161+
self, e_ft: np.ndarray, truncation: float, mu_W: float, sigma_W2: float
162162
) -> CovarianceMatrix:
163163
m = e_ft.shape[0]
164164
return np.zeros((m, m))
165165

166166
def _residual_mean(
167-
self, e_ft: np.ndarray, truncation: float, model_id: int | None = None
167+
self, e_ft: np.ndarray, truncation: float, mu_W: float,
168168
) -> CovarianceMatrix:
169169
m = e_ft.shape[0]
170170
return np.zeros((m, 1))

stonesoup/models/transition/levylinear.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def __init__(self, *args, **kwargs):
157157
super().__init__(*args, **kwargs)
158158
self.A = self._init_A()
159159
self.h = self._init_h()
160-
160+
161161
def _integrand(self, dt: float, jtimes: np.ndarray) -> np.ndarray:
162162
delta = dt - jtimes[..., np.newaxis, np.newaxis]
163163
return expm(self.A * delta) @ self.h

0 commit comments

Comments
 (0)