Skip to content

Commit b89e94f

Browse files
authored
Merge pull request #121 from JuliaControl/balancenorm
balance before norm computations
2 parents 0b18f7d + e3f3d11 commit b89e94f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/descriptor.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ For keyword arguments, see the docstring of `DescriptorSystems.ghinfnorm`, repro
3030
$(@doc(DescriptorSystems.ghinfnorm))
3131
"""
3232
function hinfnorm2(sys::LTISystem; kwargs...)
33+
sys, _ = balance_statespace(sys)
3334
DescriptorSystems.ghinfnorm(dss(ss(sys)); kwargs...)
3435
end
3536

3637
function linfnorm2(sys::LTISystem; kwargs...)
38+
sys, _ = balance_statespace(sys)
3739
DescriptorSystems.glinfnorm(dss(ss(sys)); kwargs...)
3840
end
3941

src/uncertainty_interface.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,4 +766,9 @@ Version that constructs from initial guess
766766
# end
767767
# end
768768
# BlockDiagonal(D)
769-
# end
769+
# end
770+
771+
772+
function ControlSystemsBase.downsample(t,y::AbstractArray{<: MonteCarloMeasurements.AbstractParticles},detail_th)
773+
ControlSystemsBase.downsample(t, pmean.(y), pmean(detail_th)/10)
774+
end

0 commit comments

Comments
 (0)