mizerMR (development version)
mizerMR now respects mizer’s
second_order_wflag. When second-order bin-averaging is switched on, each resource’s carrying capacity and replenishment rate are built from the exact bin averages of their power laws over the resource’s size range (with the bins straddlingw_min/w_maxgetting the partial average) rather than point-sampled at the left bin edge, and the initial resource inherits the bin-averaged capacity.newMRParams()gains asecond_order_wargument that is passed through to mizer’s constructor. The default (first-order) behaviour is unchanged and the package still works against mizer versions without thesecond_order_wslot.The resource accessors (
getResourceMort(),initialNResource(),finalNResource()andNResource()) now return classed objects (MRArrayResourceBySizeandMRArrayTimeByResourceBySize) that supportprint(),summary(),plot()andas.data.frame()methods, so you can do e.g.plot(getResourceMort(params))orplot(NResource(sim))with one coloured line per resource. This mirrors the corresponding classes added for the single resource in mizer. Requires mizer (>= 3.0.0.9002).
mizerMR 0.3.0
- Compatible with mizer version 3.0.0
-
setMultipleResources()now uses mizer’s extension-chain methods for encounter and resource mortality instead of replacing entries inparams@rates_funcs, allowing composition with other extension packages. - Accessors and plots that need multiple-resource behaviour are now registered as methods for mizer’s generics.
plotlySpectra()has been removed. - The resource encounter rate is now computed with a single Fourier transform for all resources combined instead of one per resource, so the encounter cost no longer grows with the number of resources. A per-resource fallback is retained for models with a custom (non-Fourier) predation kernel.
-
scaleModel(),scaleRates(),setResource()andsummary()now have multiple-resource methods.scaleModel()andscaleRates()rescale all resource capacities, abundances and rates consistently (previouslyscaleModel()errored);setResource()warns that it only affects the silenced built-in resource; andsummary()reports the combined resource size range instead of the empty built-in resource.
mizerMR 0.0.3
-
plotSpectra()andplotlySpectra()work with multiple resources. - New plotting functions
plotResourceLevel()andplotResourcePred(). -
setMultipleResources()no longer changes the initial resource abundances unless supplied viainitial_resource. - Fix bug preventing
resource_params()from changing the resource arrays. -
plotDietMR()renamed toplotDiet().
mizerMR 0.0.2
-
setMultipleResources()now adds to theextensionsfield in params metadata. -
plotDietMR()is a replacement forplotDiet()that works with multiple resources. -
setMultipleResources()now sets theinital_n_ppslot to zero so that there are no spurious contributions togetDiet()for example. - The functions extracting information from MizerParams or MizerSim objects now all fall back onto core mizer functions when called with objects for which no multiple resources have been set up.
- The resource params are now saved in the
@other_paramsslot instead of theresource_paramsslot to avoid breaking core mizer code.
