Skip to content

Commit

Permalink
R0 of correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Nov 14, 2024
1 parent ec17c86 commit 6040e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/ControlSystemIdentificationLSOptExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function _inner_pem(
function get_ukf(px0::Vector{T}) where {T}
pᵢ = px0[1:length(p0)]
x0i = optimize_x0 ? px0[x0inds] : x0
UnscentedKalmanFilter(discrete_dynamics, measurement, R1, R2, SimpleMvNormal(T.(x0i), R1mut); ny, nu, p=pᵢ)
UnscentedKalmanFilter(discrete_dynamics, measurement, R1, R2, SimpleMvNormal(T.(x0i), T.(R1mut)); ny, nu, p=pᵢ)
end

function residuals!(ϵ, px0)
Expand Down

0 comments on commit 6040e1e

Please sign in to comment.