rmse: Root Mean Squared Error cost function for model optimization.

View source: R/cost_functions.r

rmseR Documentation

Root Mean Squared Error cost function for model optimization.

Description

Root Mean Squared Error cost function for model optimization.

Usage

rmse(par, data, model, ...)

Arguments

par

a vector of parameter values, this is functions specific

data

nested data structure with validation data as returned by format_phenocam() or format_pep725(), or your own dataset adhering to the same data structure.

model

the model name to be used in optimizing the model

...

extra arguments to pass to the function

Value

the RMSE comparing observed and estimated values

Examples


# The cost function returns the rmse between the
# true values and those generated by the model given a
# parameterset par.
## Not run: 
cost_value = rmse(par, data, model="TTs")

## End(Not run)

bluegreen-labs/phenor documentation built on Sept. 2, 2023, 10:34 a.m.