CModel.SetModel: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:cModel.SetModel}}
{{DISPLAYTITLE:cModel.SetModel}}
{{Template:APIClass|CModel Class|cModel}}  
{{Template:APIClass|CModel Class|cModel}}  
Defines an existing cModel object.
{{Template:CModel.SetModel.Cmt}}
 
== Syntax ==
== Syntax ==
*SetModel( ModelType {{APIPrefix|As}} [[ModelTypeEnum]], ModelCategory {{APIPrefix|As}} [[ModelCategoryEnum]], ModelParams(){{APIPrefix|As Double}} )
*SetModel( ModelType {{APIPrefix|As}} [[ModelTypeEnum]], ModelCategory {{APIPrefix|As}} [[ModelCategoryEnum]], ModelParams(){{APIPrefix|As Double}} )

Revision as of 23:58, 5 March 2014


Defines an existing cModel object.

Syntax

Parameters

ModelType: The ModelTypeEnum describing the model type (e.g., 2-parameter Weibull).
ModelCategory: The ModelCategoryEnum describing the model category (e.g., reliability vs. probability of failure).
ModelParams: An array of the model's parameters.

Usage Example

Declare the cModel class using an in-line parameter list.

       Dim newModel As New cModel(ModelTypeEnum.Weibull2, ModelCategoryEnum.Reliability, "NewModel1", 1, 100)

Change the model type and parameters.

       newModel.SetModel(ModelTypeEnum.Lognormal, ModelCategoryEnum.Reliability, 200)