Description Usage Arguments Value References
View source: R/optimise_sinus.R
Optimise Sinus Fit for Variable Period
1 2 3 4 5 6 7 | optimise_sinus_variablePeriod(
temp_df,
optFunc = opt_func,
opt_limits = c(100, 500),
opt_tolerance = 0.001,
opt_debug = FALSE
)
|
temp_df |
data frame with temperature data and columns "date" (YYYY-MM-DD) and "value" |
optFunc |
optimisation function (default: |
opt_limits |
optimisation limits for "period_length" (default: c(100,500)) |
opt_tolerance |
(default: 0.001) |
opt_debug |
show debug information (default: FALSE) |
list with fit parameters ("paras"), goodness-of-fit values ("gof"), special points, i.e. min/max/turning-points ("points), fit model ("lm_model") and input data ("data")
https://stats.stackexchange.com/questions/77543/how-do-i-get-the-amplitude-and-phase-for-sine-wave-from-lm-summary
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.