CModel.SetModel: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
Chris Kahn (talk | contribs) No edit summary  | 
				Chris Kahn (talk | contribs)  | 
				||
| Line 14: | Line 14: | ||
== Usage Example ==  | == Usage Example ==  | ||
{{APIComment|Declare the cModel class using an in-line parameter list.}}  |  {{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.}}  | |||
 {{APIComment|Change the model type and parameters.}}  | |||
   newModel.SetModel(ModelTypeEnum.Lognormal, ModelCategoryEnum.Reliability, 200)  | |||
Revision as of 17:03, 6 May 2014
 
Defines an existing cModel object.
Syntax
- SetModel( ModelType As ModelTypeEnum, ModelCategory As ModelCategoryEnum, ModelParams()As Double )
 
Parameters
- ModelType: The ModelTypeEnum describing the model type (e.g., 2-parameter Weibull).
 
- ModelCategory: The ModelCategoryEnum describing the model category (e.g., reliability model).
 
- 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)
