CModel.SetModel: Difference between revisions
Jump to navigation
Jump to search
John Leavitt (talk | contribs) No edit summary |
Albert Szeto (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
{{APIName|)}}<br> | {{APIName|)}}<br> | ||
{{APIComment|Sets a new model.}} | {{APIComment|Sets a new model.}} | ||
== Parameters == | |||
'''ModelType''' | |||
{{APIComment|The [[ModelTypeEnum]] describing this model.}} | |||
'''ModelParams''' | |||
{{APIComment|The array of the models' parameters.}} | |||
== Usage Example == | == Usage Example == |
Revision as of 17:50, 1 October 2013
Creates a new model.
Method Syntax
SetModel
( ByVal
ModelType
As
ModelTypeEnum,
ByVal ParamArray
ModelParams()
As Double
)
Sets a new model.
Parameters
ModelType The ModelTypeEnum 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, 2, 200)