ALTAAnalysisResults Class

From ReliaWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
APIWiki.png


Member of: SynthesisAPI


Represents the likelihood function value estimated from the accelerated life testing data analysis of the associated ALTADataSet object.

Properties

Name Description
LikelihoodValue Gets the likelihood function value (LK value). Double.


Example

The following example demonstrates how to return the LK value of a particular ALTADataSet object.

VBA

 'Declare a new ALTADataSet object. 
  Dim ADS As New ALTADataSet
 
 'Define a stress type with use stress level = 300. 
  Call ADS.AddStressDefinition("Stress1",,300)

 'Add failure times for Stress1 = 190 and 235. 
  Call ADS.AddFailure_2(100, 1, 190)
  Call ADS.AddFailure_2(120, 1, 190)
  Call ADS.AddFailure_2(130, 1, 235)
  Call ADS.AddFailure_2(140, 1, 235)

 'Fit the data to a model, using all default analysis settings. 
  Call ADS.Calculate()
  
 'Retrieve the LK value. 
  Dim LK As Double
  LK = ADS.AnalysisResults.LikelihoodValue
  Msgbox(LK)
VB.NET

 'Declare a new ALTADataSet object. 
  Dim ADS As New ALTADataSet
 
 'Define a stress type with use stress level = 300. 
  ADS.AddStressDefinition("Stress1",,300)

 'Add failure times for Stress1 = 190 and 235. 
  ADS.AddFailure(100, 1, 190)
  ADS.AddFailure(120, 1, 190)
  ADS.AddFailure(130, 1, 235)
  ADS.AddFailure(140, 1, 235)

 'Fit the data to a model, using all default analysis settings. 
  ADS.Calculate()
  
 'Retrieve the LK value. 
  Dim LK As Double
  LK = ADS.AnalysisResults.LikelihoodValue
  Msgbox(LK)