Skip to content

Commit e3f3d11

Browse files
committed
add method for downsample with particles
1 parent 2270d2c commit e3f3d11

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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)