v
member of the class inherited from Objective. Other members are used to store starting values and to restrict the range the value takes on during optimization.
Click on Hierarchy to see the different kinds of parameters in a logical order.
ParameterBLocks are a derived class for reprsenting a vector of parameters treated together.
Parameters to maxmiize over are added to the Objective before applying an Algorithm which modifies the parameter values.
Functions | ||
NormalDistParmeters | Create an array of Normal Distribution parameters and return it. | |
TransitionMatrix | Create an array of Simplex blocks that act as a transition matrix. |
Public fields | ||
LB | const | AV compatible, the lower bound |
UB | const | AV compatible, the upper bound |
Public methods | ||
Bounded | Create a parameter bounded above and below. |
Public fields | ||
UB | const | AV compatible, the upper bound |
Public methods | ||
BoundedAbove | Create a new parameter bounded above. | |
Menu | virtual |
Public fields | ||
LB | const | AV compatible, the lower bound |
Public methods | ||
BoundedBelow | A parameter bounded below. |
xj = Free()
Public methods | ||
Coefficients | Create a block of free parameters. |
Correlation(L,v0) ≡ Bounded(L,-1.0,1.0,v0)
)
Public methods | ||
Correlation | Create a new parameter bounded above by 1 and below by -1. |
x0 = BoundedAbove(UB) or Free() xj = BoundedAbove(xj-1)
Public methods | ||
Decreasing | Create a decreasing vector of parameters. |
J
probabilities that sum to strictly less than 1.
x0 = Probability ... xj = Bounded(0.0,1-∑k=0…j-1 xk)
Public methods | ||
DecreasingReturns | Create a block of decreasing returns to scale coefficients. |
Public methods | ||
Determined | Create a fixed, pre-determined parameter. | |
SetDoNotVary | Do nothing because DoNotVary does not change for Determined parameter. | |
ToggleDoNotVary | Do nothing because DoNotVary does not toggle for Determined parameter. |
Public methods | ||
Decode | ||
Encode | Default encoding: no scaling, no constraining. | |
FixedBlock | create a new vector of parameters that are not changed by algorithms. |
Public methods | ||
Encode | virtual | . |
Free | Create a free, unrestricted parameter. |
x0 = BoundedBelow(LB) or Free() xj = BoundedBelow(xj-1)
Public methods | ||
Increasing | Create an increasing vector of parameters. |
Public fields | ||
nearflat | starting value is near the flat spot of the transformation. | |
Public methods | ||
Limited | . |
Negative(L,v0) ≡ BoundedAbove(L,0.0)
Public methods | ||
Negative | Create a parameter bounded above by 0. |
Public fields | ||
Anchored | const | list is anchored . |
B | const | AV compatible, bound for first value. |
Public methods | ||
Ordered | Create a block with parameters that maintain an order. |
Public fields | ||
curpar | current param in V. | |
N | length of block. | |
Psi | array of parameters . | |
PsiL | array of labels. | |
Public methods | ||
AddToBlock | Append parameter to the block. | |
BlockCode | virtual | Default update for an unstructured block of parameters. |
Encode | virtual | Default encoding: no scaling, no constraining. |
Menu | virtual | |
ParameterBlock | Create a new block of related Parameters. | |
SetDoNotVary | Set the value of DoNotVary. | |
ToggleDoNotVary | Toggle DoNotVary for All or some block elements. | |
Xb | Return \(X\beta = X*CV(beta)\). |
Positive(L,v0) ≡ BoundedBelow(L,0,v0)
Public methods | ||
Positive | Create a parameter bounded below by 0. |
xj = Probability()
Public methods | ||
Probabilities | Create a block of parameters all constrained to be probabilities. |
Probability(L,v0) &equiv Bounded(L,0.0,1.0)
Public methods | ||
Probability | Create a new parameter bounded above by 1 and below by 0. |
J
probabilities that sum to 1.
x0 = Probability xj = Bounded(0.0,1-∑k=0…j-1 xk) ⋮ xJ = Determined(1-∑xj)
Public fields | ||
fval | final value, used for cumulating. | |
Public methods | ||
Last | static | |
Simplex | Create a simplex of parameters. |
xj = Positive()
Public methods | ||
StDeviations | Create a block of positive parameters. |
pars
vector or array.
L | Label prefix for the parameters |
ivals | initial values vector see NormalParams default is <0.0;1.0>, which means parameters start as standard normal if ivals has three elements the last is the correlation coefficient \(\rho\) |
L | label |
inmat | a square matrix of initial values for the transitions.
Each column of inmat should be a proper transition (not each row).
|
decl tmat =< 0.90 ~ 0.09 ~0.05; 0.02 ~ 0.80 ~0.3; 0.08 ~ 0.01 ~0.11> decl m = TransitionMatrix("p",tmat); Parameters(m); println("The current Markov transition matrix is ", CV(m));
L | parameter label |
LB | double or Parameter, the upper bound |
v0 | CV compatible default value, v0 |
L | label for the block (e.g. the equation) |
ivals | 0: set to length of labels and initialize values to 0 > 0: number of coefficients, initialize to 0 |
labels | 0: use numbers for labels array of strings, labels for coefficients (e.g. variable names) vector: initial values |
L | parameter label |
v0 | CV compatible default value, v0 |
L | label |
UB | upper bound for first variable, a double, CV comptible. send .Inf to make the first parameter free |
ivals | integer, dimension of sequence OR N×1 vector of initial values |
Anchored | TRUE, UB should be the first element of the block (as a Determined parameter) |
L | label |
ivals | N×1 vector, initial values
0< xi < 1 |
L | string |
v0 | double, initial value, current value determined by something else CV compatible default value, v0 |
v = start; scale = 1.0; f = v;
L | label |
v0 | vector or array of values. |
L | parameter label |
v0 | CV compatible default value |
LB < x1 < x2 < … < xN
L | label |
LB | lower bound for first variable, a double, Parameter or static function send -.Inf to make the first parameter free |
ivals | integer, dimension of sequence OR N×1 vector of initial values |
Anchored | TRUE, LB should be the first element of the block (as a Determined parameter) |
L | parameter label |
v0 | CV compatible default value, v0 |
L | label |
B | CV-compatible bound or Determined parameter (can be -∞ or +∞) |
ivals | vector of initial values scalar number of ordered elements (not counting Anchor) |
sign | ordering |
Anchored | if TRUE the first element of the block is B |
psi | Parameter to add. |
... | more parameters |
curpar
(and reset 0 when it reaches N).
v = start; scale = 1.0; f = v;
L | string Label for block |
... | a list of parameters to add to the block if only one argument is supplied it should be an array of parameters. |
setting | TRUE or FALSE |
elements | DoAll or a vector of parameter indices |
X | row vector or matrix conforming to the coefficient vector. |
L | parameter label |
v0 | CV compatible default value, v0 |
L | label for the block |
ivals | 0: set to length of labels and initialize values to 0 > 0: number of postivie parameters, initialize to 1.0 vector: initial values |
labels | 0: use numbers for labels array of strings, labels for values (e.g. variable names) |
L | parameter label |
v0 | CV compatible default value, v0 |
L | label |
ivals | integer: dimension of simplex initialized as equal values 1/N
N×1 vector, initial values 0 < x0 < 1 0 < x1 < x0 ⋮ 0 < xi < ∑j=0…i-1 xj xN-1 = 1 - ∑j=0…N-2 xj |
L | label for the block |
ivals | 0: set to length of labels and initialize all values at 1 > 0: number of positive parameters, initialize to 1.25 vector: initial values |
labels | 0: use numbers for labels array of strings, labels for values (e.g. variable names) For example, a vector of standard deviations. |