BoundsValues Class: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) |
||
Line 13: | Line 13: | ||
Dim SuccessSetConfLevel As Boolean | Dim SuccessSetConfLevel As Boolean | ||
Dim SetsError As String | Dim SetsError As String | ||
SuccessSetConfLevel = newModel.SetConfindenceLevel(.9, | SuccessSetConfLevel = newModel.SetConfindenceLevel(.9, ConfBoundsSides.TwoSidedBoth, False, SetsError) | ||
{{APIComment|Get an object containing the bounds on reliability at time = 100.}} | {{APIComment|Get an object containing the bounds on reliability at time = 100.}} |
Revision as of 23:21, 11 April 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 Class. 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