BoundsValues Class: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
== Usage Example == | == Usage Example == | ||
{{APIComment| | {{APIComment|'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) | |||
{{APIComment|'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) | |||
{{APIComment| | |||
{{APIComment|Get an object containing the bounds on reliability at time = 100.}} | |||
Dim ModelBoundsValue as BoundsValues | |||
ModelBoundsValue = AModel.Bounds_Reliability(100) | |||
{{APIComment|'Save the upper and lower bounds.}} | |||
Dim UpperBoundValue as Double | |||
Dim LowerBoundValue as Double | |||
{{APIComment|Get the | UpperBoundValue = ModelBoundsValue.Upper | ||
LowerBoundValue = ModelBoundsValue.Lower | |||
{{APIComment| | |||
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