@@ -28,7 +28,7 @@ timestep_mean(sim, ::Colon) = timeseries_steps_mean(sim)
28
28
function timestep_median (sim, i)
29
29
arr = componentwise_vectors_timestep (sim, i)
30
30
if typeof (first (arr)) <: AbstractArray
31
- return reshape ([median (x) for x in arr], size (sim. u[1 ][i])... )
31
+ return reshape ([median (x) for x in arr], size (sim. u[1 ]. u [i])... )
32
32
else
33
33
return median (arr)
34
34
end
@@ -37,7 +37,7 @@ timestep_median(sim, ::Colon) = timeseries_steps_median(sim)
37
37
function timestep_quantile (sim, q, i)
38
38
arr = componentwise_vectors_timestep (sim, i)
39
39
if typeof (first (arr)) <: AbstractArray
40
- return reshape ([quantile (x, q) for x in arr], size (sim. u[1 ][i])... )
40
+ return reshape ([quantile (x, q) for x in arr], size (sim. u[1 ]. u [i])... )
41
41
else
42
42
return quantile (arr, q)
43
43
end
@@ -97,15 +97,15 @@ timepoint_mean(sim, t) = componentwise_mean(get_timepoint(sim, t))
97
97
function timepoint_median (sim, t)
98
98
arr = componentwise_vectors_timepoint (sim, t)
99
99
if typeof (first (arr)) <: AbstractArray
100
- return reshape ([median (x) for x in arr], size (sim. u[1 ][1 ])... )
100
+ return reshape ([median (x) for x in arr], size (sim. u[1 ]. u [1 ])... )
101
101
else
102
102
return median (arr)
103
103
end
104
104
end
105
105
function timepoint_quantile (sim, q, t)
106
106
arr = componentwise_vectors_timepoint (sim, t)
107
107
if typeof (first (arr)) <: AbstractArray
108
- return reshape ([quantile (x, q) for x in arr], size (sim. u[1 ][1 ])... )
108
+ return reshape ([quantile (x, q) for x in arr], size (sim. u[1 ]. u [1 ])... )
109
109
else
110
110
return quantile (arr, q)
111
111
end
@@ -122,7 +122,7 @@ function timepoint_weighted_meancov(sim, W, t1, t2)
122
122
end
123
123
124
124
function SciMLBase. EnsembleSummary (sim:: SciMLBase.AbstractEnsembleSolution{T, N} ,
125
- t = sim. u[1 ]. t; quantiles = [0.05 , 0.95 ]) where {T, N}
125
+ t = sim. u[1 ]. t; quantiles = [0.05 , 0.95 ]) where {T, N}
126
126
if sim. u[1 ] isa SciMLSolution
127
127
m, v = timeseries_point_meanvar (sim, t)
128
128
med = timeseries_point_median (sim, t)
0 commit comments