CModel.SetModel: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Template:APIClass|CModel Class|CModel}}  
{{Template:APIClass|CModel Class|CModel}}  


== Method Syntax ==
{{APIName|SetModel}}
{{APIPrefix|( ByVal}}
{{APIName|ModelType}}
{{APIPrefix|As}}
{{APIName|[[ModelTypeEnum]],}}
{{APIPrefix|ByVal ParamArray}}
{{APIName|ModelParams()}}
{{APIPrefix|As Double}}
{{APIName|)}}<br>
{{APIComment|Sets a new model.}}


== Syntax==
== Usage Example ==
{{Template:cModel.SetModel}}
{{APIComment|Declare the cModel class using an in-line parameter list.}}
        Dim newModel As New cModel(ModelTypeEnum.Weibull2, ModelCategoryEnum.Reliability, "NewModel1", 1, 100)
 
{{APIComment|Change the model type and parameters.}}
        newModel.SetModel(ModelTypeEnum.Lognormal, 2, 200)

Revision as of 23:45, 19 September 2013



Method Syntax

SetModel ( ByVal ModelType As ModelTypeEnum, ByVal ParamArray ModelParams() As Double )
Sets a new model.

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, 2, 200)