aboutsummaryrefslogblamecommitdiff
path: root/R/SFORB.solution.R
blob: 45a4533a227d3fba6ba74ed0753cbf610463a891 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                                               
SFORB.solution = function(t, parent.0, k_12, k_21, k_1output) {
  sqrt_exp = sqrt(1/4 * (k_12 + k_21 + k_1output)^2 + k_12 * k_21 - (k_12 + k_1output) * k_21)
  b1 = 0.5 * (k_12 + k_21 + k_1output) + sqrt_exp
  b2 = 0.5 * (k_12 + k_21 + k_1output) - sqrt_exp
  
  parent = parent.0 * 
        (((k_12 + k_21 - b1)/(b2 - b1)) * exp(-b1 * t) +
        ((k_12 + k_21 - b2)/(b1 - b2)) * exp(-b2 * t))
}

Contact - Imprint