| dmgfd_fit_one_curve | R Documentation |
Internal helper used by [dm.growth.fit.double()] to fit one double curve for one series and one season, or one pooled double curve.
dmgfd_fit_one_curve(
x_obs,
y_obs,
x_pred,
season_start_date = as.Date(NA),
season_length = NA_real_,
method,
growth_fraction,
min_unique_growth,
rate_threshold_fraction = 0.1,
peak_separation_min = 10,
valley_ratio_max = 0.4,
min_relative_peak = 0.05,
fallback_to_single = TRUE,
fix_a_to_observed_max = FALSE,
fixed_a_multiplier = 1,
start_value_double_gompertz_parameters,
start_value_double_richards_parameters
)
x_obs |
Observed season-day values. |
y_obs |
Observed cumulative growth values. |
x_pred |
Prediction season-day values. |
season_start_date |
Season start date. |
season_length |
Season length. |
method |
Double-growth method. |
growth_fraction |
Growth fractions used for cumulative timing. |
min_unique_growth |
Minimum number of unique growth values. |
rate_threshold_fraction |
Fraction of peak rate. |
peak_separation_min |
Minimum separation between peaks. |
valley_ratio_max |
Maximum allowed valley-to-peak ratio. |
min_relative_peak |
Minimum relative derivative peak height. |
fallback_to_single |
Logical fallback flag. |
fix_a_to_observed_max |
Logical fixed-asymptote flag. |
fixed_a_multiplier |
Multiplier for fixed asymptote. |
start_value_double_gompertz_parameters |
Double-Gompertz starts. |
start_value_double_richards_parameters |
Double-Richards starts. |
List with fitted predictions and parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.