From 1718d434efae26de02754c6622c43f4dc9e624b9 Mon Sep 17 00:00:00 2001 From: jranke Date: Thu, 15 Mar 2012 15:54:14 +0000 Subject: Update kinfit and mkin to the latest version published on BerliOS. git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/kinfit/pkg/mkin@17 edb9625f-4e0d-4859-8d74-9fd3b1da38cb --- R/HS.solution.R | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 R/HS.solution.R (limited to 'R/HS.solution.R') diff --git a/R/HS.solution.R b/R/HS.solution.R new file mode 100644 index 00000000..4651a6a8 --- /dev/null +++ b/R/HS.solution.R @@ -0,0 +1,6 @@ +HS.solution <- 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))) +} -- cgit v1.2.3