Get Actual Parameters from Scaled Values
Restore scaled parameters to their original units. Used in minimization by calcMin
.
restorePar(S,pvec)
S |
scaled parameter vector. |
pvec |
a data frame comprising four columns -
|
Restoration algorithm: P = Pmin + (Pmax - Pmin) (sin(pi*S/2))^2
Parameter vector converted from scaled units to original units specified by pvec
.
Jon T. Schnute, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC
local(envir=.PBSmodEnv,expr={ pvec <- data.frame(val=c(1,100,10000),min=c(0,0,0),max=c(5,500,50000), active=c(TRUE,TRUE,TRUE)) S <- c(.5,.5,.5) P <- restorePar(S,pvec) print(cbind(pvec,S,P)) })
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.