BoundsValues Class: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) |
Chris Kahn (talk | contribs) |
||
Line 7: | Line 7: | ||
== Usage Example == | == Usage Example == | ||
<div style="margin-right: 150px;"> | |||
{{APIComment|'Initialize a new cModel object (life distribution with specified parameters). See [[cModel Class|cModel]].}} | {{APIComment|'Initialize a new cModel object (life distribution with specified parameters). See [[cModel Class|cModel]].}} | ||
Dim newModel As New cModel(ModelTypeEnum.Weibull2, ModelCategoryEnum.Reliability, "NewModel1", 1, 100) | Dim newModel As New cModel(ModelTypeEnum.Weibull2, ModelCategoryEnum.Reliability, "NewModel1", 1, 100) | ||
Line 24: | Line 25: | ||
UpperBoundValue = ModelBoundsValue.Upper | UpperBoundValue = ModelBoundsValue.Upper | ||
LowerBoundValue = ModelBoundsValue.Lower | LowerBoundValue = ModelBoundsValue.Lower | ||
</div> |
Revision as of 22:36, 23 May 2014
Stores the upper and lower confidence bounds estimated from a cModel object.
Properties
- Upper (as double) Gets the upper value.
- Lower (as double) Gets the lower value.
Usage Example
'Initialize a new cModel object (life distribution with specified parameters). See cModel. Dim newModel As New cModel(ModelTypeEnum.Weibull2, ModelCategoryEnum.Reliability, "NewModel1", 1, 100) 'Specify that the 90% two-sided confidence bounds will be calculated. See cModel.SetConfidenceLevel. Dim SuccessSetConfLevel As Boolean Dim SetsError As String SuccessSetConfLevel = newModel.SetConfindenceLevel(.9, ConfBoundsSides.TwoSidedBoth, False, SetsError) Get an object containing the bounds on reliability at time = 100. Dim ModelBoundsValue as BoundsValues ModelBoundsValue = AModel.Bounds_Reliability(100) 'Save the upper and lower bounds. Dim UpperBoundValue as Double Dim LowerBoundValue as Double UpperBoundValue = ModelBoundsValue.Upper LowerBoundValue = ModelBoundsValue.Lower