CModel.SetConfidenceLevel: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 16: Line 16:


== Usage Example ==
== Usage Example ==
{{APIComment|Declare the cModel class using an in-line parameter list.}}
{{APIComment|'Declare the cModel class using an in-line parameter list.}}
        Dim newModel As New cModel(ModelTypeEnum.Weibull2, ModelCategoryEnum.Reliability, "NewModel1", 1, 100)
  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}}
{{APIComment|'Set a new confidence level. Set SetsError for any errors found during this method}}
        Dim SuccessSetConfLevel As Boolean
  Dim SuccessSetConfLevel As Boolean
        Dim SetsError As String
  Dim SetsError As String
        SuccessSetConfLevel = newModel.SetConfindenceLevel(.9, [[ConfBoundsSides]].TwoSidedBoth, False, SetsError)
  SuccessSetConfLevel = newModel.SetConfindenceLevel(.9, [[ConfBoundsSides]].TwoSidedBoth, False, SetsError)

Revision as of 23:06, 2 May 2014


Sets the confidence level for all subsequent confidence bounds calculations. Returns True if successful, otherwise returns False. Returns True if successful, otherwise returns False.

Syntax

  • SetConfidenceLevel( Level As Double , Sides As ConfBoundsSides , UseConfidenceLevelInPercents As Boolean , sError As String ) As Boolean

Parameters

Level: The confidence level, entered as a percentage.
Sides: The sides setting for this confidence level (e.g., lower bound), specified using the ConfBoundsSides enumeration.
UseConfidenceLevelInPercents: Whether to show the result as a percentage (otherwise it is shown as a 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)