Optimise Sinus Fit Function
opt_func(period, df, opt_criteria = "RMSE", debug = TRUE)
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) |
scalar with optimisation result