calibrate_to: Calibrate the model scale to match a total observation

View source: R/calibrate.R

calibrate_toR Documentation

Calibrate the model scale to match a total observation

Description

Internal implementation shared by calibrateBiomass() and calibrateNumber(). Rescales the model with scaleModel() so that the total over all observed species of the modelled quantity agrees with the total of the observations. Species with no observation are left out of both totals.

Usage

calibrate_to(params, to = c("biomass", "number"))

Arguments

params

A MizerParams object.

to

The type of observation, either "biomass" or "number".

Value

A MizerParams object. If no non-missing observations are provided, the original object is returned unchanged.


mizer documentation built on Aug. 24, 2026, 9:08 a.m.