Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions filterpy/stats/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ def multivariate_gaussian(x, mu, cov):
"a future release of FilterPy"), DeprecationWarning)

# force all to numpy.array type, and flatten in case they are vectors
x = np.array(x, copy=False, ndmin=1).flatten()
mu = np.array(mu, copy=False, ndmin=1).flatten()
x = np.asarray(x).flatten()
mu = np.asarray(mu).flatten()

nx = len(mu)
cov = _to_cov(cov, nx)
Expand Down