dmgf_fit_one_curve: Fit one growth curve

dmgf_fit_one_curveR Documentation

Fit one growth curve

Description

Internal helper used by [dm.growth.fit()] to fit one curve for one series and one season, or one pooled curve.

Usage

dmgf_fit_one_curve(
  x_obs,
  y_obs,
  x_pred,
  season_start_date = as.Date(NA),
  season_length = NA_real_,
  season_id = NULL,
  method,
  loess_span,
  spline_df,
  growth_fraction,
  min_unique_growth,
  rate_threshold_fraction = 0.1,
  fix_a_to_observed_max = FALSE,
  fixed_a_multiplier = 1,
  start_value_gompertz_parameters,
  start_value_richards_parameters
)

Arguments

x_obs

Observed x values.

y_obs

Observed growth values.

x_pred

Prediction x values.

season_start_date

Season start date.

season_length

Season length.

season_id

Optional season ID for pooled fits.

method

Fitting method.

loess_span

Loess span.

spline_df

Spline degrees of freedom.

growth_fraction

Growth fractions used for cumulative timing.

min_unique_growth

Minimum number of unique growth values.

rate_threshold_fraction

Fraction of peak rate used for rate timing.

fix_a_to_observed_max

Logical.

fixed_a_multiplier

Multiplier for fixed asymptote.

start_value_gompertz_parameters

Starting values for Gompertz.

start_value_richards_parameters

Starting values for logistic/Richards.

Value

List with fitted predictions and parameters.


dendRoAnalyst documentation built on May 20, 2026, 5:07 p.m.