% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dm.growth.fit.double.R
\name{dmgfd_fit_one_curve}
\alias{dmgfd_fit_one_curve}
\title{Fit one double growth curve}
\usage{
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
)
}
\arguments{
\item{x_obs}{Observed season-day values.}

\item{y_obs}{Observed cumulative growth values.}

\item{x_pred}{Prediction season-day values.}

\item{season_start_date}{Season start date.}

\item{season_length}{Season length.}

\item{method}{Double-growth method.}

\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.}

\item{peak_separation_min}{Minimum separation between peaks.}

\item{valley_ratio_max}{Maximum allowed valley-to-peak ratio.}

\item{min_relative_peak}{Minimum relative derivative peak height.}

\item{fallback_to_single}{Logical fallback flag.}

\item{fix_a_to_observed_max}{Logical fixed-asymptote flag.}

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

\item{start_value_double_gompertz_parameters}{Double-Gompertz starts.}

\item{start_value_double_richards_parameters}{Double-Richards starts.}
}
\value{
List with fitted predictions and parameters.
}
\description{
Internal helper used by [dm.growth.fit.double()] to fit one double curve for
one series and one season, or one pooled double curve.
}
\keyword{internal}
