CModel.SetModel: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
'''ModelType'''
'''ModelType'''
{{APIComment|The [[ModelTypeEnum]] describing this model.}}
{{APIComment|The [[ModelTypeEnum]] describing this model.}}
'''ModelCategory'''
{{APIComment|The [[ModelCategoryEnum]] describing this model.}}


'''ModelParams'''
'''ModelParams'''
Line 29: Line 32:


{{APIComment|Change the model type and parameters.}}
{{APIComment|Change the model type and parameters.}}
         newModel.SetModel(ModelTypeEnum.Lognormal, 2, 200)
         newModel.SetModel(ModelTypeEnum.Lognormal, ModelCategoryEnum.Reliability, 200)

Revision as of 17:49, 30 October 2013


Creates a new model.

Method Syntax

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

Parameters

ModelType The ModelTypeEnum describing this model.

ModelCategory The ModelCategoryEnum describing this model.

ModelParams The array of the models' 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)