R/findcd.R

"findcd" <- function(x, y, scaleInc = 0.001)
{ 
    yRange <- range(y)
    lenyRange <- scaleInc * diff(yRange)
#    cVal <- yRange[1] - lenyRange  # the c parameter        
#    dVal <- yRange[2] + lenyRange  # the d parameter
    
    c(yRange[1] - lenyRange, yRange[2] + lenyRange)
}

Try the drc package in your browser

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

drc documentation built on May 1, 2019, 8:43 p.m.