CModel.Time: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
Calculates time value.
Calculates time value.
== Method Syntax==
== Method Syntax==
<ul><li>{{APIName|Time}}
<ul><li>Time(
{{APIName|(}}
{{APIPrefix|ByVal}}
{{APIName|Rel}}
{{APIName|Rel}}
{{APIPrefix|As Double}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIName|,}}
{{APIPrefix|Optional ByVal}}
{{APIName|CurrentAge}}
{{APIName|CurrentAge}}
{{APIPrefix|As Double}}
{{APIPrefix|As Double}}
=
=
{{APIName|0,}}
{{APIName|0,}}
{{APIPrefix|Optional ByVal}}
{{APIName|DutyCycle}}
{{APIName|DutyCycle}}
{{APIPrefix|As Double}}
{{APIPrefix|As Double}}
=
=
{{APIName|1,}}
{{APIName|1,}}
{{APIPrefix|Optional ByRef}}
{{APIName|AdjustedRel}}
{{APIName|AdjustedRel}}
{{APIPrefix|As Double}}
{{APIPrefix|As Double}}
=
=
{{APIName|0)}}
{{APIName|0 )}}
{{APIPrefix|As Double}}
{{APIPrefix|As Double}}
</li></ul>
</li></ul>

Revision as of 22:37, 20 February 2014



Calculates time value.

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 the reliability is at 95%, for the model described in newModel.

       Dim ResultValue as Double
       ResultValue = newModel.Time(.95)