Skip to content

Commit 190e84f

Browse files
authored
Merge pull request #171 from pik-piam/patch
convergence documentation
2 parents 6c0be2e + 303c1b2 commit 190e84f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

R/convergence.R

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@
1414
#' @param direction NULL, "up" or "down". NULL means normal convergence in both
1515
#' directions, "up" is only a convergence if origin<aim, "down" means only a
1616
#' convergence if origin>aim
17-
#' @param type "smooth", "s", "linear" or "decay". Describes the type of
18-
#' convergence: linear means a linear conversion , s is an s-curve which starts
19-
#' from origin in start_year and reaches aim precisely in end_year. After 50
20-
#' percent of the convergence time, it reaches about the middle of the two
21-
#' values. Its based on the function min(1, pos^4/(0.07+pos^4)*1.07) smooth is
22-
#' a conversion based on the function x^3/(0.1+x^3). In the latter case only
23-
#' 90\% of convergence will be reached in the end year, because full
24-
#' convergence is reached in infinity. decay is a conversion based on the
25-
#' function x/(1.5 + x)*2.5.
17+
#' @param type "smooth", "s", "linear" or "decay". Describes the function used
18+
#' for convergence (x starts at 0 and ends at 1):
19+
#' "linear" means linear interpolation.
20+
#' "s" is an s-curve which starts from origin in start_year and reaches aim
21+
#' precisely in end_year. After 50\% of the convergence time, it reaches about
22+
#' the middle of the two values. It's using the function x^4/(0.07+x^4)*1.07).
23+
#' "smooth" is a conversion based on the function x^3/(0.1+x^3). With "smooth"
24+
#' only 90\% of convergence will be reached in the end year, full
25+
#' convergence is approached as x approaches infinity.
26+
#' "decay" is a conversion based on the function x / (par + x) * (par + 1).
2627
#' @param par parameter value for convergence function; currently only used for
2728
#' type="decay"
2829
#' @return returns a time-series with the same timesteps as origin, which

0 commit comments

Comments
 (0)