You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In chapter 10 when calculating sigma points you state:
The subscript 𝑖 in [ sqrt( (𝑛+𝜆)Σ )]𝑖 is choosing the column vector of the matrix.
but when calculating the sigma points you choose row vectors
sigmas=np.zeros((2*n+1, n))
U=scipy.linalg.cholesky((n+lambda_)*P) # sqrtsigmas[0] =Xforkinrange (n):
sigmas[k+1] =X+U[k] # row vector of Usigmas[n+k+1] =X-U[k] # row vector of U
According to Merwe on page 7, row or column vectors are okay as I understood. Maybe you could elaborate on that and change either the text or the implementation?
The text was updated successfully, but these errors were encountered:
I'm not 100% sure at the moment. I know why the discrepancy exists between text and code, however. scipy.linalg.cholesky returns upper-triangular by default, and numpy.linalg.cholesky returns lower-triangular by default. I think when I wrote the text I was using numpy, not scipy. If I remember correctly grabbing rows or columns depends on which one you use, but I don't recall the specifics,
In chapter 10 when calculating sigma points you state:
but when calculating the sigma points you choose row vectors
According to Merwe on page 7, row or column vectors are okay as I understood. Maybe you could elaborate on that and change either the text or the implementation?
The text was updated successfully, but these errors were encountered: