Skip to content

Commit 9fd810a

Browse files
committed
Provide default value for Kappa
GitHub #123; JuliaSigmaPoints documentation stated that kappa had a default value, but the code did not do this.
1 parent 7ad88e4 commit 9fd810a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

filterpy/kalman/sigma_points.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def sigma_points(self, x, P):
122122
Parameters
123123
----------
124124
125-
X An array-like object of the means of length n
125+
x : An array-like object of the means of length n
126126
Can be a scalar if 1D.
127127
examples: 1, [1,2], np.array([1,2])
128128
@@ -254,7 +254,7 @@ class JulierSigmaPoints(object):
254254
Sensor Fusion, and Target Recognition VI, 182 (July 28, 1997)
255255
"""
256256

257-
def __init__(self, n, kappa, sqrt_method=None, subtract=None):
257+
def __init__(self, n, kappa=0., sqrt_method=None, subtract=None):
258258

259259
self.n = n
260260
self.kappa = kappa
@@ -286,7 +286,7 @@ def sigma_points(self, x, P):
286286
Parameters
287287
----------
288288
289-
X : array-like object of the means of length n
289+
x : array-like object of the means of length n
290290
Can be a scalar if 1D.
291291
examples: 1, [1,2], np.array([1,2])
292292

0 commit comments

Comments
 (0)