diff options
author | jranke <jranke@edb9625f-4e0d-4859-8d74-9fd3b1da38cb> | 2012-03-15 15:54:14 +0000 |
---|---|---|
committer | jranke <jranke@edb9625f-4e0d-4859-8d74-9fd3b1da38cb> | 2012-03-15 15:54:14 +0000 |
commit | 1718d434efae26de02754c6622c43f4dc9e624b9 (patch) | |
tree | c2dafe942f65e94cd43e1ba17933b667f284d154 /R/HS.solution.R | |
parent | 2b244ef7d3cbebaaa653d8c8ac87090e34525f7a (diff) |
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
Diffstat (limited to 'R/HS.solution.R')
-rw-r--r-- | R/HS.solution.R | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/R/HS.solution.R b/R/HS.solution.R new file mode 100644 index 0000000..4651a6a --- /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)))
+}
|