addParameter
Class: sdo.ParameterSpace
Package: sdo
Add parameter to sdo.ParameterSpace
object
Syntax
ps = addParameter(ps0,p)
ps = addParameter(ps0,p,pdist)
Description
adds
a model parameter, ps
= addParameter(ps0
,p
)p
, to an sdo.ParameterSpace
object, ps0
,
and returns the updated object, ps
. The software
updates the ParameterNames
property to include
the parameter name.
The software also updates the ParameterDistributions
property
to specify the uniform distribution for the parameter. The software
sets the values of the two parameters of the uniform distribution:
Lower
— Set top.Minimum
. Ifp.Minimum
is equal to -Inf, then the software setsLower
to0.9*p.Value
. Unlessp.Value
is equal to 0, in which case the software setsLower
to -1.Upper
— Set top.Maximum
. Ifp.Maximum
is equal to Inf, then the software setsUpper
to1.1*p.Value
. Unlessp.Value
is equal to 0, in which case the software setsUpper
to 1.
specifies
the probability distribution of ps
= addParameter(ps0
,p
,pdist
)p
.
Input Arguments
|
Parameter space, specified as an |
|
Model parameters and states, specified as a vector of For example, |
|
Probability distribution of model parameters, specified as a vector of univariate probability distribution objects.
Use the To check if |
Output Arguments
|
Updated parameter space, returned as an |