aboutsummaryrefslogtreecommitdiff
path: root/R/parent_solutions.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/parent_solutions.R')
-rw-r--r--R/parent_solutions.R6
1 files changed, 2 insertions, 4 deletions
diff --git a/R/parent_solutions.R b/R/parent_solutions.R
index 04226b73..bbdffc21 100644
--- a/R/parent_solutions.R
+++ b/R/parent_solutions.R
@@ -22,11 +22,9 @@
#'
#' \dontrun{plot(function(x) SFO.solution(x, 100, 3), 0, 2)}
#'
+#' @useDynLib mkin SFO_solution
#' @export
-SFO.solution <- function(t, parent_0, k)
-{
- parent = parent_0 * exp(-k * t)
-}
+SFO.solution <- function(t, parent_0, k) .Call(SFO_solution, as.double(t), as.double(parent_0), as.double(k))
#' First-Order Multi-Compartment kinetics
#'

Contact - Imprint