diff options
Diffstat (limited to 'R/HS.R')
-rw-r--r-- | R/HS.R | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -0,0 +1,6 @@ +HS <- function(t, parent.0, k1, k2, tb)
+{
+ parent = ifelse(t <= tb,
+ parent.0 * exp(-k1 * t),
+ parent.0 * exp(-k1 * tb) * exp(-k2 * (t - tb)))
+}
|