R/pheno.r

Defines functions pheno

Documented in pheno

#' Model floral phenology as a triangular function of first bloom, last bloom,
#' and peak bloom; called internally by \code{landpheno}.
#'
#' @param x a vector of time steps
#' @param start time step of first bloom
#' @param end time step of last bloom
#' @param peak time step of peak bloom
#' @return a vector of proportional floral density
#' @export

pheno <- function(x, start, end, peak) {
  triangle::dtriangle(x, start, end, peak)
}
sponslerdb/floralcurves documentation built on April 4, 2022, 11:59 p.m.