% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dm.growth.fit.R
\name{dmgf_fit_one_curve}
\alias{dmgf_fit_one_curve}
\title{Fit one growth 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{
\item{x_obs}{Observed x values.}

\item{y_obs}{Observed growth values.}

\item{x_pred}{Prediction x values.}

\item{season_start_date}{Season start date.}

\item{season_length}{Season length.}

\item{season_id}{Optional season ID for pooled fits.}

\item{method}{Fitting method.}

\item{loess_span}{Loess span.}

\item{spline_df}{Spline degrees of freedom.}

\item{growth_fraction}{Growth fractions used for cumulative timing.}

\item{min_unique_growth}{Minimum number of unique growth values.}

\item{rate_threshold_fraction}{Fraction of peak rate used for rate timing.}

\item{fix_a_to_observed_max}{Logical.}

\item{fixed_a_multiplier}{Multiplier for fixed asymptote.}

\item{start_value_gompertz_parameters}{Starting values for Gompertz.}

\item{start_value_richards_parameters}{Starting values for logistic/Richards.}
}
\value{
List with fitted predictions and parameters.
}
\description{
Internal helper used by [dm.growth.fit()] to fit one curve for one series and
one season, or one pooled curve.
}
\keyword{internal}
