Skip to content

Commit

Permalink
fix: make mean's output a scalar instead of a 2d array
Browse files Browse the repository at this point in the history
To ensure `lower` and `upper` are a scalar, `x` must be a 1d array.
Otherwise, if `x` is a 3d array, `lower` and `upper` will be 2d array, which are not what
we want in our context. However, we tend to have x as a `[1, len(x), 1]`. In this case,
we need to flatten `x` to 1d array to get the correct `lower` and `upper`.
  • Loading branch information
mhchia committed Jan 22, 2024
1 parent aaa2cdf commit 2be1dca
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 347 deletions.
Loading

0 comments on commit 2be1dca

Please sign in to comment.