Function to apply over samples, must return a single value.
By default the median over all samples is returned using the quantile function,
but one might also be interested in the mean or sd, for instance.
calcfuncargs
A list of additional parameters to pass to calcfunc.
For instance, with the default of calcfunc = quantile,
the probs argument is needed to ensure only a single value is returned.
timeinterval
time interval for discrete time parameter matrix computation.