toggle_Min_PMin: Transform a set of parameters from Min, MinB or MinE to PMin,...

View source: R/toggle_Min_PMin.R

toggle_Min_PMinR Documentation

Transform a set of parameters from Min, MinB or MinE to PMin, PminB or PminE, or reverse

Description

This function is used to transform a set of parameters that uses Min, MinB or MinE to a set of parameters that uses PMin, PminB or PminE, or reverse.

Usage

toggle_Min_PMin(parameters = stop("A set of parameters must be indicated"))

Arguments

parameters

Set of current parameters

Details

toggle_Min_PMin transforms a set of parameters from Min, MinB or MinE to PMin, PminB or PminE, or reverse

Value

Return a set of modified parameters

Author(s)

Marc Girondot marc.girondot@gmail.com

Examples

# Read a file with data
data(Gratiot)
# Generate a formatted list nammed data_Gratiot
refdate <- as.Date("2001-01-01")
data_Gratiot<-add_phenology(Gratiot, name="Complete", reference=refdate, format="%d/%m/%Y")
# Generate initial points for the optimisation
parg<-par_init(data_Gratiot)
# Change the parameters to PMinB and PMinE
parg1<-toggle_Min_PMin(parameters=parg)
# And change back to MinB and MinE
parg2<-toggle_Min_PMin(parameters=parg1)

phenology documentation built on Sept. 11, 2024, 6:07 p.m.