CModel.SetModel: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:cModel.SetModel}} | {{DISPLAYTITLE:cModel.SetModel}} | ||
{{Template:APIClass|CModel Class| | {{Template:APIClass|CModel Class|cModel}} | ||
Creates a new model. | Creates a new model. | ||
== Method Syntax == | == Method Syntax == |
Revision as of 23:42, 5 March 2014
Creates a new model.
Method Syntax
- SetModel( ModelType As ModelTypeEnum, ModelCategory As ModelCategoryEnum, ModelParams()As Double )
Parameters
- ModelType: The ModelTypeEnum describing this model.
- ModelCategory: The ModelCategoryEnum describing this model.
- ModelParams: The 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)