library(ggplot2)
ana1CMTbolus <- function(Dose,pars,t){
  Dose * pars['C'] * exp(-pars['L']*t)
}
pars   <- c(C=1,L=1)
times  <- seq(0,24,length.out=200)
out    <- amp.sim::mdose(Dose=10,tau=24,ndose=1,t=times,func=ana1CMTbolus,pars=pars)
ggplot(out,aes(time,y)) + geom_line()
