get_prediction_cost: Error of the Prediction of Microbial Inactivation

Description Usage Arguments Value See Also

View source: R/calculate_cost.R

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

1
2
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


bioinactivation documentation built on Aug. 1, 2019, 5:05 p.m.