Learn R Programming

mizer (version 3.0.0)

flux_from_rates: Assemble the flux matrix from growth, diffusion and recruitment rates

Description

Internal helper holding the arithmetic shared by getFlux.MizerParams and getFlux.MizerSim. Keeping it separate lets the MizerSim method resolve the rate functions once and reuse them across all saved time steps.

Usage

flux_from_rates(params, n, g, d, rdd, power = 0)

Value

A plain species x size matrix of fluxes (no mizer array class).

Arguments

params

A valid MizerParams object.

n

A matrix of species abundances (species x size).

g

Growth rate matrix (species x size), as from getEGrowth().

d

Diffusion rate matrix (species x size), as from getDiffusion().

rdd

Density-dependent reproduction rate vector (one per species), as from getRDD().

power

The flux at weight \(w\) is multiplied by \(w\) raised to power. The default power = 0 leaves the flux of individuals unchanged.