ALTAAnalysisResults Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:




Represents the likelihood function value estimated from the accelerated life testing data analysis of an associated [[ALTADataSet Class|ALTADataSet Class]] object.
Represents the likelihood function value estimated from the accelerated life testing data analysis of an associated [[ALTADataSet Class|ALTADataSet]] object.


== Properties  ==
== Properties  ==
Line 19: Line 19:
   {{APIPrefix|Dim}} ADS {{APIPrefix|As New}} ALTADataSet
   {{APIPrefix|Dim}} ADS {{APIPrefix|As New}} ALTADataSet
    
    
  {{APIComment|'Define a stress type with use stress level = 25.}}
  {{APIComment|'Define a stress type with use stress level = 300.}}
   {{APIPrefix|Call}} ADS.AddStressDefinition({{APIString|"Stress1"}},,300)
   {{APIPrefix|Call}} ADS.AddStressDefinition({{APIString|"Stress1"}},,300)
   
   
  {{APIComment|'Add failure times for Stress1 = 190.}}
  {{APIComment|'Add failure times for Stress1 = 190 and 235.}}
   {{APIPrefix|Dim}} Stress(0) {{APIPrefix|As}} Variant
   {{APIPrefix|Dim}} Stress(0) {{APIPrefix|As}} Variant
   Stress(0) = 190
   Stress(0) = 190
Line 45: Line 45:
   {{APIPrefix|Dim}} ADS {{APIPrefix|As New}} ALTADataSet
   {{APIPrefix|Dim}} ADS {{APIPrefix|As New}} ALTADataSet
    
    
  {{APIComment|'Define a stress type with use stress level = 25.}}
  {{APIComment|'Define a stress type with use stress level = 300.}}
   ADS.AddStressDefinition({{APIString|"Stress1"}},,300)
   ADS.AddStressDefinition({{APIString|"Stress1"}},,300)
   
   
  {{APIComment|'Add failure times for Stress1 = 190.}}
  {{APIComment|'Add failure times for Stress1 = 190 and 235.}}
   ADS.AddFailure(100, 1, 190)
   ADS.AddFailure(100, 1, 190)
   ADS.AddFailure(120, 1, 190)
   ADS.AddFailure(120, 1, 190)

Revision as of 20:39, 19 April 2016

APIWiki.png


Member of: SynthesisAPI


Represents the likelihood function value estimated from the accelerated life testing data analysis of an 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. 
  Dim Stress(0) As Variant
  Stress(0) = 190
  Call ADS.AddFailure(100, 1, Stress)
  Call ADS.AddFailure(120, 1, Stress)

  Stress(0) = 235
  Call ADS.AddFailure(130, 1, Stress)
  Call ADS.AddFailure(140, 1, Stress)

 '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)