get_prediction_cost {bioinactivation}R Documentation

Error of the Prediction of Microbial Inactivation

Description

Calculates the error of the prediction of microbial inactivation for the chosen inactivation model and the given parameters with respect to the experimental data provided. This function is compatible with the function fit_dynamic_inactivation.

Usage

get_prediction_cost(data_for_fit, temp_profile, simulation_model, P,
  known_params)

Arguments

data_for_fit

A data frame with the experimental data to fit. It must contain a column named “time” and another one named “N”.

temp_profile

data.frame defining the temperature profile. It must have a column named “time” and another named “temperature”.

simulation_model

character key defining the inactivation model.

P

list with the unknown parameters of the model to be adjusted.

known_params

list with the parameters of the model fixed (i.e., not adjusted)

Value

An instance of modCost with the error of the prediction.

See Also

modCost, fit_dynamic_inactivation


[Package bioinactivation version 1.2.3 Index]