CModel.SetConfidenceLevel: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
 
No edit summary
Line 1: Line 1:
#REDIRECT [[CModel.SetConfidenceLevel]]
{{DISPLAYTITLE:cModel.SetConfidenceLevel}}
{{Template:APIClass|CModel Class|CModel}}
Sets confidence level for bounds calculations.
== Method Syntax==
{{APIName|SetConfindenceLevel}}
{{APIName|(}}
{{APIPrefix|ByVal}}
{{APIName|Level}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|Sides}}
{{APIPrefix|As}}
{{APIName|[[ConfBoundsSides]],}}
{{APIPrefix|ByVal}}
{{APIName|UseConfidenceLevelInPercents}}
{{APIPrefix|As Boolean,}}
{{APIPrefix|ByRef}}
{{APIName|sError}}
{{APIPrefix|As String}}
{{APIName|)}}
{{APIPrefix|As Boolean}}<br>
{{APIComment|Sets the confidence level for all subsequent confidence bounds calculations.}}
 
== Parameters ==
'''Level'''
{{APIComment|The confidence level.}}
 
'''Sides'''
{{APIComment|The sides setting for this confidence level.}}
 
'''UseConfidenceLevelInPercents'''
{{APIComment|Show result in percentages or decimal.}}
 
'''sError'''
{{APIComment|Return string for any error results.}}
 
== Usage Example ==
{{APIComment|Declare the cModel class using an in-line parameter list.}}
        Dim newModel As New cModel(ModelTypeEnum.Weibull2, ModelCategoryEnum.Reliability, "NewModel1", 1, 100)
 
{{APIComment|Set a new confidence level. Set SetsError for any errors found during this method}}
        Dim SuccessSetConfLevel As Boolean
        Dim SetsError As String
        SuccessSetConfLevel = newModel.SetConfindenceLevel(.9, [[ConfBoundsSides]].TwoSidedBoth, False, SetsError)

Revision as of 23:04, 5 March 2014


Sets confidence level for bounds calculations.

Method Syntax

SetConfindenceLevel ( ByVal Level As Double , ByVal Sides As ConfBoundsSides, ByVal UseConfidenceLevelInPercents As Boolean, ByRef sError As String ) As Boolean
Sets the confidence level for all subsequent confidence bounds calculations.

Parameters

Level The confidence level.

Sides The sides setting for this confidence level.

UseConfidenceLevelInPercents Show result in percentages or decimal.

sError Return string for any error results.

Usage Example

Declare the cModel class using an in-line parameter list.

       Dim newModel As New cModel(ModelTypeEnum.Weibull2, ModelCategoryEnum.Reliability, "NewModel1", 1, 100)

Set a new confidence level. Set SetsError for any errors found during this method

       Dim SuccessSetConfLevel As Boolean
       Dim SetsError As String
       SuccessSetConfLevel = newModel.SetConfindenceLevel(.9, ConfBoundsSides.TwoSidedBoth, False, SetsError)