| scalePar {PBSmodelling} | R Documentation |
Scale parameters for function minimization by calcMin.
scalePar(pvec)
pvec |
a data frame comprising four columns -
c("val","min","max","active") and as many rows as there are model
parameters. The "active" field (logical) determines whether the
parameters are estimated (TRUE) or remain fixed (FALSE). |
Scaling algorithm: S = (2/pi) asin sqrt((P - Pmin)/(Pmax - Pmin))
Parameter vector scaled between 0 and 1.
pvec <- data.frame(val=c(1,100,10000),min=c(0,0,0),max=c(5,500,50000),
active=c(TRUE,TRUE,TRUE))
S <- scalePar(pvec)
print(cbind(pvec,S))