Skip to content

Commit 35166b7

Browse files
committed
add balancing for uncertain matrices
1 parent 2db5d79 commit 35166b7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/uncertainty_interface.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,12 @@ function ControlSystemsBase.tzeros(A::AbstractMatrix{T}, B::AbstractMatrix{T}, C
462462
bymap(tzeros, A, B, C, D)
463463
end
464464

465+
function ControlSystemsBase.balance(A::AbstractMatrix{<:AbstractParticles}, perm::Bool=true)
466+
S,P,B = balance(pmean.(A), perm)
467+
T = S*P
468+
S, P, T\A*T
469+
end
470+
465471

466472
using MonteCarloMeasurements: vecindex
467473

0 commit comments

Comments
 (0)