CModel.MeanTime: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
m (Protected "CModel.MeanTime" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
No edit summary
Line 1: Line 1:
{{Template:APIClass|CModel Class|CModel}}  
{{Template:APIClass|CModel Class|CModel}}Calculates mean time value.
Calculates mean time value.
== Method Syntax==
== Method Syntax==
{{APIName|MeanTime}}
<ul><li>{{APIName|MeanTime}}
{{APIName|(}}
{{APIName|(}}
{{APIPrefix|Optional ByVal}}
{{APIPrefix|Optional ByVal}}
Line 12: Line 11:
{{APIName|DutyCycle}}
{{APIName|DutyCycle}}
{{APIPrefix|As Double )}}
{{APIPrefix|As Double )}}
{{APIPrefix|As Double}}<br>
{{APIPrefix|As Double}}</li></ul>
{{APIComment|Returns the mean time.}}


== Parameters ==
Parameters
'''CurrentAge'''
:''CurrentAge'': The current age.
{{APIComment|The current age.}}
:''DutyCycle'': The duty cycle.
 
'''DutyCycle'''
{{APIComment|The duty cycle.}}


== Usage Example ==
== Usage Example ==

Revision as of 22:41, 20 February 2014


Calculates mean time value.

Method Syntax

  • MeanTime ( Optional ByVal CurrentAge As Double = 0, Optional ByVal DutyCycle As Double ) As Double

Parameters

CurrentAge: The current age.
DutyCycle: The duty cycle.

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 MeanTime for the model described in newModel.

       Dim ResultValue as Double
       ResultValue = newModel.MeanTime