CModel.SetConfidenceLevel: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) No edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
===Parameters=== | ===Parameters=== | ||
''Level'' | ''Level'' | ||
:Double. The confidence level, entered as a percentage. | :Required. Double. The confidence level, entered as a percentage. | ||
''Sides'' | ''Sides'' | ||
: The sides setting (e.g., lower bound) for this confidence level. Can be any [[ConfBoundsSides Enumeration|ConfBoundsSides]] constant. | :Required. The sides setting (e.g., lower bound) for this confidence level. Can be any [[ConfBoundsSides Enumeration|ConfBoundsSides]] constant. | ||
''UseConfidenceLevelInPercents'' | ''UseConfidenceLevelInPercents'' | ||
:Boolean. When true, the result is shown as a percentage; otherwise, it is shown as a decimal. | :Required. Boolean. When true, the result is shown as a percentage; otherwise, it is shown as a decimal. | ||
''sError'' | ''sError'' | ||
:String. Returns a string for any error results. | :Required. String. Returns a string for any error results. | ||
Revision as of 17:42, 31 August 2015
Member of: SynthesisAPI9.cModel
Sets the confidence level for all subsequent confidence bounds calculations. Returns a Boolean value; when true, indicates a successful update.
Syntax
.SetConfidenceLevel(Level, Sides, UseConfidenceLevelInPercents, ByRef sError)
Parameters
Level
- Required. Double. The confidence level, entered as a percentage.
Sides
- Required. The sides setting (e.g., lower bound) for this confidence level. Can be any ConfBoundsSides constant.
UseConfidenceLevelInPercents
- Required. Boolean. When true, the result is shown as a percentage; otherwise, it is shown as a decimal.
sError
- Required. String. Returns a string for any error results.
Example
VBA ... 'Add code to get an existing model or create a new one. Dim AModel As New cModel ... 'Set the confidence level to 90% two-sided bounds. 'Declare a string variable for any errors found during this method. Dim ErrorMsg As String Call AModel.SetConfidenceLevel(0.9, ConfBoundsSides_TwoSidedBoth, False, ErrorMsg) 'Confidence bounds calculations are now possible. For example, 'the following code calculates the 90% two-sided confidence bounds on the reliability at 100 hrs. Dim ResultValue As BoundsValues Set ResultValue = AModel.Bounds_Reliability(100)
VB.NET ... 'Add code to get an existing model or create a new one. Dim AModel As New cModel ... 'Set the confidence level to 90% two-sided bounds. 'Declare a string variable for any errors found during this method. Dim ErrorMsg As String AModel.SetConfidenceLevel(0.9, ConfBoundsSides.TwoSidedBoth, False, ErrorMsg) 'Confidence bounds calculations are now possible. For example, 'the following code calculates the 90% two-sided confidence bounds on the reliability at 100 hrs. Dim ResultValue As BoundsValues ResultValue = AModel.Bounds_Reliability(100)