CModel.SetModel

From ReliaWiki
Revision as of 23:24, 2 December 2013 by John Leavitt (talk | contribs) (Changed protection level for "CModel.SetModel" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
Jump to navigation Jump to search


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)