scalePar {PBSmodelling} | R Documentation |
Scale Parameters to [0,1]
Description
Scale parameters for function minimization by calcMin
.
Usage
scalePar(pvec)
Arguments
pvec |
a data frame comprising four columns -
|
Details
Scaling algorithm: S = \frac{2}{\pi} asin \sqrt{ \frac{P - P_{min}}{P_{max} - P_{min}} }
Value
Parameter vector scaled between 0 and 1.
Author(s)
Jon T. Schnute, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC
See Also
Examples
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 <- scalePar(pvec)
print(cbind(pvec,S))
})
[Package PBSmodelling version 2.69.3 Index]