Description Usage Arguments Value See Also Examples
View source: R/calculate_sensitivity.R
Calculates the local sensitivity function of a microbial inactivation
process. These are estimated using finite differences, through the function
sensFun
from the FME
package.
1 2 3 | sensitivity_inactivation(inactivation_model, parms, temp_profile,
parms_fix, n_times = 100, varscale = 1, parscale = 1,
sensvar = "logN", ...)
|
inactivation_model |
Character defining the inactivation model to use. |
parms |
Numeric vector with the nominal values of the model parameters. |
temp_profile |
Data frame describing the environmental conditions. |
parms_fix |
Nominal value of the parameters not considered for the sensitivity. |
n_times |
Numeric value specifying the nombers of time points where the sensitivity functions will be calculated. 100 by default. |
varscale |
The scaling factor for sensitivity variables. |
parscale |
The scaling factor for parameters. |
sensvar |
The output variable for which the sensitivity will be
estimated. |
... |
Additional arguments passed to sensFun |
A data.frame of class sensFun
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | parms_fix <- c(temp_ref = 57.5)
parms <- c(delta_ref = 3.9,
z = 4.2,
p = 1,
N0 = 1e6
)
temp_profile <- data.frame(time = c(0, 60), temperature = c(30, 60)
)
sensitivity <- sensitivity_inactivation("Mafart", parms,
temp_profile, parms_fix)
plot(sensitivity)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.