R/midpoint.R

midpoint <- function(object, noise.cyc = 1:5)
{
      Fluo <- object$DATA[, 2]
      Fmax <- max(Fluo, na.rm = TRUE)
      Fnoise <- sd(Fluo[noise.cyc], na.rm = TRUE)
      mp <- Fnoise * sqrt(Fmax/Fnoise)
      cyc.mp <- as.numeric(predict(object, newdata = data.frame(Fluo = mp), which = "x"))
      return(list(f.mp = mp, cyc.mp = cyc.mp))
}

Try the qpcR package in your browser

Any scripts or data that you put into this service are public.

qpcR documentation built on May 2, 2019, 5:17 a.m.