statget
Access values in statistics options structure
Syntax
val = statget(options,param)
val = statget(options,param,default)
Description
val = statget(options,param)
returns the value of the
parameter specified by param
in the statistics options structure
options
. The input param
is a character vector or a string
scalar of the parameter name. If the parameter is undefined in options
,
statget
returns []
. You need to type only enough leading
characters to define the parameter name uniquely. statget
ignores case for
parameter names. For available options
, see Inputs.
val = statget(options,param,default)
returns default
if
the specified parameter is undefined in the optimization options structure options
.
Input Arguments
|
Relative difference used in finite difference derivative calculations. A positive scalar, or a vector of positive scalars the same size as the vector of parameters estimated by the Statistics and Machine Learning Toolbox™ function using the options structure. |
|
Amount of information displayed by the algorithm.
|
|
Check for invalid values, such as
|
|
Flags whether the objective function returns a gradient vector as a second output.
|
|
Flags whether the objective function returns a Jacobian as a second output.
|
|
Maximum number of objective function evaluations allowed. Positive integer. |
|
Maximum number of iterations allowed. Positive integer. |
|
The solver calls all output functions after each iteration.
|
|
Invoke robust fitting option.
|
|
A weight function for robust fitting. Valid only when
|
|
A single instance of the |
|
Parameter bound tolerance. Positive scalar. |
|
Termination tolerance for the objective function value. Positive scalar. |
|
Use
|
|
Use
|
|
Termination tolerance for the parameters. Positive scalar. |
|
The tuning constant used in robust fitting to normalize the residuals before applying the weight function. The default value depends upon the weight function. This parameter is necessary if you specify the weight function as a function handle. Positive scalar. |
|
Flag indicating whether eligible functions should use capabilities of the Parallel Computing Toolbox™ (PCT), if the capabilities are available. That is, if the PCT is installed, and
a PCT |
|
Flag indicating whether the random number generator in eligible
functions should use |
|
A weight function for robust fitting. Valid only when
|
Examples
This statement returns the value of the Display
statistics
options parameter from the structure called my_options
.
val = statget(my_options,'Display')
Return the value of the Display
statistics
options parameter from the structure called my_options
(as
in the previous example). If the Display
parameter
is undefined, statget
returns the value 'final'
.
optnew = statget(my_options,'Display','final');
Version History
Introduced before R2006a