CModel Constructors: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
== Syntax == | == Syntax == | ||
*cModel() {{APIComment|{{Template: | *cModel() {{APIComment|{{Template:cModel_Constructors1.Cmt}}}} | ||
*cModel( ModelType{{APIPrefix|As ModelTypeEnum}}, ModelCategory {{APIPrefix|As ModelCategoryEnum}}, ModelName {{APIPrefix|As String}},{{APIPrefix|ParamArray}} ModelParams(){{APIPrefix|As Double}}) {{APIComment|{{Template: | *cModel( ModelType{{APIPrefix|As ModelTypeEnum}}, ModelCategory {{APIPrefix|As ModelCategoryEnum}}, ModelName {{APIPrefix|As String}},{{APIPrefix|ParamArray}} ModelParams(){{APIPrefix|As Double}}) {{APIComment|{{Template:cModel_Constructors2.Cmt}}}} | ||
Parameters | Parameters |
Revision as of 18:11, 21 February 2014
Constructors for the cModel class.
Syntax
- cModel() Creates an empty model (use SetModel method to set the model name, type, category and parameters).
- cModel( ModelTypeAs ModelTypeEnum, ModelCategory As ModelCategoryEnum, ModelName As String,ParamArray ModelParams()As Double) Creates a new model using the provided model type, category, name and parameters.
Parameters
- ModelType: The type of model (e.g., 2-parameter Weibull), specified with a ModelTypeEnum value.
- ModelCategory: The model category (e.g., reliability model), specified with a ModelCategoryEnum value.
- ModelName: The model name.
- ModelParams(): An array of parameter values. The parameters should be specified as described in Parameter Arrays.