Optimise Sinus Fit Function

opt_func(period, df, opt_criteria = "RMSE", debug = TRUE)

Arguments

period

period length

df

data frame with temperature data and columns "date" (YYYY-MM-DD) and "value"

opt_criteria

(default: "RMSE"), for other options check: ?hydroGOF::gof

debug

show debug messages (default: TRUE)

Value

scalar with optimisation result