mean_kernel: Mean kernels for stochastic models

View source: R/utils-stoch.R

mean_kernelR Documentation

Mean kernels for stochastic models

Description

This function computes mean sub-kernels for stochastic parameter re-sampled and stochastic kernel re-sampled models.

Usage

mean_kernel(ipm)

Arguments

ipm

A stochastic model created by make_ipm().

Details

For *_stoch_kern models, this computes the element-wise mean for each sub-kernel across all the different levels of par_set_indices. For models where not all sub-kernels contain parameter set indices, sub-kernels that do not have varying parameters are included in the output and are identical to their input.

For *_stoch_param models, this computes the element-wise mean for each sub-kernel created by the iteration procedure.

Value

A list of mean sub-kernels for the model.


levisc8/ipmr documentation built on Feb. 22, 2023, 9:15 p.m.