154 i.addParamValue(
'Desired',1);
155 i.addParamValue(
'Range',[
default * .9
default*1.1]);
156 i.addParamValue(
'Spacing',
'lin');
189 #if 0 //mtoc++: 'set.Name'
190 function
Name(value) {
192 error(" name should be a character field ");
201 #if 0 //mtoc++: 'set.Range'
202 function
Range(range) {
204 range = [range range];
206 if range(2) < range(1)
207 error(" Invalid range:
MinVal must be greater or equal to
MaxVal. ");
220 #if 0 //mtoc++: 'set.Desired'
222 if value < 0 || ~isscalar(value)
232 #if 0 //mtoc++: 'set.Default'
234 if isempty(value) || ~isscalar(value)
235 error("
Default must be a scalar
double ");
244 #if 0 //mtoc++: 'set.Spacing'
246 if ~ischar(value) || ~any(strcmp(value,[
" lin ",
" log "]))
247 error("
Spacing can either be 'lin' or 'log'. ");
257 #if 0 //mtoc++: 'get.MinVal'
258 function value =
MinVal() {
259 value = this.
Range(1);
266 #if 0 //mtoc++: 'get.MaxVal'
267 function value =
MaxVal() {
268 value = this.
Range(2);
275 #if 0 //mtoc++: 'get.HasRange'
277 value = abs(this.
MinVal - this.MaxVal) > 10*eps;
char Spacing
Sets the desired sampling type for random or grid sampling.
double MaxVal
The minimum value of the parameters Range.
integer Desired
For Sampling: The desired number of samples. This field may be used differently, refer to the samplin...
double MinVal
The maximum value of the parameter's data.ModelParam.Range.
ModelParam(char name,double default, varargin)
Creates a new model parameter.
char Name
The Name of the Parameter.
boolean HasRange
Flag that indicates if this parameter is constant or has a range to vary within.
Matlab's base handle class (documentation generation substitute)
double Default
The default value of this parameter.
A variable number of input arguments.
double Range
The range of the values the parameter may take.
A MatLab character array.