CModel.Reliability: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:cModel.Reliability}}
{{DISPLAYTITLE:cModel.Reliability}}{{Template:API}}{{Template:APIBreadcrumb|9|.[[CModel Class|cModel]]}}
{{Template:APIClass|CModel Class|cModel}}  
{{Template:CModel.Reliability.Cmt}}


== Syntax==
 
*Reliability( Time {{APIPrefix|As Double}}, {{APIPrefix|Optional}} StartAge {{APIPrefix|As Double}} = 0 , {{APIPrefix|Optional}} DutyCycle {{APIPrefix|As Double}} = 1.0 {{APIPrefix|As Double}} ) {{APIPrefix|As Double}}
<onlyinclude>Returns the reliability at the specified time. Type: '''Double'''.</onlyinclude>
 
== Syntax ==
 
'''.Reliability'''( ''Time'', ''StartAge'', ''DutyCycle'')


Parameters
Parameters


:''Time'': The time at which to calculate the reliability.
''Time''
:Double. The time at which to calculate the reliability. (Required)
 
''StartAge''
:Double. The starting age. Default value = 0. (Optional)


:''StartAge'': The starting age.
''DutyCycle''
:Double. The duty cycle. Default value = 1.0. (Optional)


:''DutyCycle'': The duty cycle.


== Usage Example ==
== Example ==
  {{APIComment|Declare a cModel object using an in-line parameter list.}}
'''VBA|VB.NET'''
   Dim newModel As New cModel(ModelTypeEnum.Weibull2, ModelCategoryEnum.Reliability, "NewModel1", 1, 100)
 
{{APIComment|...}}
  {{APIComment|Calculate the reliability at time &#61; 100 using the model.}}
   Dim ResultValue as Double
  {{APIComment|'Add code to get an existing model or create a new one.}}
   ResultValue = newModel.Reliability(100)
   {{APIPrefix|Dim}} AModel {{APIPrefix|As New}} cModel
{{APIComment|...}}
  {{APIComment|Calculate the model's reliability at time &#61; 100.}}
   {{APIPrefix|Dim}} ResultValue {{APIPrefix|As Double}}
   ResultValue = AModel.Reliability(100)

Revision as of 22:44, 28 July 2015

APIWiki.png


Member of: SynthesisAPI9.cModel


Returns the reliability at the specified time. Type: Double.

Syntax

.Reliability( Time, StartAge, DutyCycle)

Parameters

Time

Double. The time at which to calculate the reliability. (Required)

StartAge

Double. The starting age. Default value = 0. (Optional)

DutyCycle

Double. The duty cycle. Default value = 1.0. (Optional)


Example

VBA|VB.NET

 ... 

 'Add code to get an existing model or create a new one. 
 Dim AModel As New cModel
 ... 

 Calculate the model's reliability at time = 100. 
 Dim ResultValue As Double
 ResultValue = AModel.Reliability(100)