CModel.Time: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) |
||
Line 30: | Line 30: | ||
== 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|Calculate the | |||
{{APIComment|'Calculate the time when reliability = 95%.}} | |||
Dim ResultValue as Double | |||
ResultValue = newModel.Time(.95) |
Revision as of 17:13, 6 May 2014
Returns the time at which the specified reliability will be achieved.
Method Syntax
- Time( Rel As Double , CurrentAge As Double = 0, DutyCycle As Double = 1, AdjustedRel As Double = 0 ) As Double
Parameters
- Rel: The reliability to calculate the time.
- CurrentAge: The current age.
- DutyCycle: The duty cycle.
- AdjustedRel: If CurrentAge is greater than 0, the adjusted reliability is updated.
Usage Example
'Declare the cModel class using an in-line parameter list. Dim newModel As New cModel(ModelTypeEnum.Weibull2, ModelCategoryEnum.Reliability, "NewModel1", 1, 100) 'Calculate the time when reliability = 95%. Dim ResultValue as Double ResultValue = newModel.Time(.95)