ALTAAnalysisResults Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Template:APIClass|ALTADataSet Class|ALTADataSet}}
{{Template:API}}{{Template:APIBreadcrumb}}
A class that describes the likelihood value that an event will occur.
== Syntax==
{{Template:ALTAAnalysisResults.LikelihoodValue}}


== Usage Example ==


{{APIComment|Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}}
Represents the likelihood function value estimated from the accelerated life testing data analysis of the associated [[ALTADataSet Class|ALTADataSet]] object.
        Dim ALTADS as New ALTADataSet


{{APIComment|Declare an [[ALTAStressProfile Class|ALTAStressProfile]]. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
== Properties  ==
        Dim sp = New ALTAStressProfile("Profile1")
{| {{APITable}}
        sp.RepeatCycle = True
|-
        sp.AddSegment(1, 250)
| style="width: 180px;"|LikelihoodValue||Gets the likelihood function value (LK value). '''Double'''.
        sp.AddSegment(2, 300)
|}
        sp.AddSegment(3, 400)


{{APIComment|Add values to the raw data.}}
        ALTADS.AddFailure(1, 1, sp)
        ALTADS.AddFailure(2, 1, sp)
        ALTADS.AddFailure(3, 1, sp)


{{APIComment|Calculate the Fitted Model using the raw data.}}
== Example ==
        ALTADS.Calculate()
The following example demonstrates how to return the LK value of a particular ALTADataSet object.  


{{APIComment|Retrieve the resultsIn this example, the likelihood result value is retrieved.}}
'''VBA'''
        Dim Likelihood As Double
        Likelihood = ALTADS.AnalysisResults.LikelihoodValue
{{APIComment|'Declare a new ALTADataSet object.}}
  {{APIPrefix|Dim}} ADS {{APIPrefix|As New}} ALTADataSet
 
{{APIComment|'Define a stress type with use stress level = 300.}}
  {{APIPrefix|Call}} ADS.AddStressDefinition({{APIString|"Stress1"}},,300)
{{APIComment|'Add failure times for Stress1 = 190 and 235.}}
  {{APIPrefix|Call}} ADS.AddFailure_2(100, 1, 190)
  {{APIPrefix|Call}} ADS.AddFailure_2(120, 1, 190)
  {{APIPrefix|Call}} ADS.AddFailure_2(130, 1, 235)
  {{APIPrefix|Call}} ADS.AddFailure_2(140, 1, 235)
{{APIComment|'Fit the data to a model, using all default analysis settings.}}
  {{APIPrefix|Call}} ADS.Calculate()
 
{{APIComment|'Retrieve the LK value.}}
  {{APIPrefix|Dim}} LK {{APIPrefix|As}} Double
  LK = ADS.AnalysisResults.LikelihoodValue
  Msgbox(LK)
 
'''VB.NET'''
{{APIComment|'Declare a new ALTADataSet object.}}
  {{APIPrefix|Dim}} ADS {{APIPrefix|As New}} ALTADataSet
 
{{APIComment|'Define a stress type with use stress level = 300.}}
  ADS.AddStressDefinition({{APIString|"Stress1"}},,300)
{{APIComment|'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)
  {{APIComment|'Fit the data to a model, using all default analysis settings.}}
  ADS.Calculate()
 
{{APIComment|'Retrieve the LK value.}}
  {{APIPrefix|Dim}} LK {{APIPrefix|As}} Double
  LK = ADS.AnalysisResults.LikelihoodValue
  Msgbox(LK)

Latest revision as of 20:30, 24 June 2016

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)