From 6040e1ed797669d3bc46528d8f67a8c10f5a8448 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Thu, 14 Nov 2024 09:41:11 +0100 Subject: [PATCH] R0 of correct type --- ext/ControlSystemIdentificationLSOptExt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ControlSystemIdentificationLSOptExt.jl b/ext/ControlSystemIdentificationLSOptExt.jl index f7109ae0..45410938 100644 --- a/ext/ControlSystemIdentificationLSOptExt.jl +++ b/ext/ControlSystemIdentificationLSOptExt.jl @@ -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)