ALTAAnalysisResults Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 10: Line 10:
== Usage Example ==
== Usage Example ==


{{APIComment|Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}}
{{APIComment|'Declare the ALTADataSet. See [[ALTADataSet Constructors]].}}
        Dim ALTADS as New ALTADataSet
  Dim ALTADS as New ALTADataSet
 
 
{{APIComment|Declare an [[ALTAStressProfile Class|ALTAStressProfile]]. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
{{APIComment|'Define a single stress. See [[ALTADataSet.AddStressDefinition|AddStressDefinition]].}}
        Dim sp = New ALTAStressProfile("Profile1")
  ALTADS.AddStressDefinition("Stress1", ALTASolverLSR.Exponential, 100)
        sp.RepeatCycle = True
 
        sp.AddSegment(1, 250)
{{APIComment|'Add failure times to the data set. See [[ALTADataSet.AddFailure|AddFailure]]}}
        sp.AddSegment(2, 300)
  ALTADS.AddFailure(10, 1, 200)
        sp.AddSegment(3, 400)
  ALTADS.AddFailure(20, 1, 200)
 
  ALTADS.AddFailure(30, 1, 200)
{{APIComment|Add values to the raw data.}}
 
        ALTADS.AddFailure(1, 1, sp)
{{APIComment|'Fit the data to a model using default analysis settings.}}
        ALTADS.AddFailure(2, 1, sp)
  ALTADS.Calculate()
        ALTADS.AddFailure(3, 1, sp)
 
 
{{APIComment|'Retrieve and save the likelihood result value.}}
{{APIComment|Calculate the Fitted Model using the raw data.}}
  Dim Likelihood As Double
        ALTADS.Calculate()
  Likelihood = ALTADS.AnalysisResults.LikelihoodValue
 
{{APIComment|Retrieve the results.  In this example, the likelihood result value is retrieved.}}
        Dim Likelihood As Double
        Likelihood = ALTADS.AnalysisResults.LikelihoodValue

Revision as of 20:47, 26 March 2014


Gets the likelihood function value that was estimated from the analysis.

In ALTA, this is the LK Value that can appear in the Analysis Summary area on the control panel.

Properties

  • LikelihoodValue (as double) The likelihood function value.

Usage Example

 'Declare the ALTADataSet. See ALTADataSet Constructors. 
 Dim ALTADS as New ALTADataSet
 
 'Define a single stress. See AddStressDefinition. 
 ALTADS.AddStressDefinition("Stress1", ALTASolverLSR.Exponential, 100)
 
 'Add failure times to the data set. See AddFailure 
 ALTADS.AddFailure(10, 1, 200)
 ALTADS.AddFailure(20, 1, 200)
 ALTADS.AddFailure(30, 1, 200)
 
 'Fit the data to a model using default analysis settings. 
 ALTADS.Calculate()
 
 'Retrieve and save the likelihood result value. 
 Dim Likelihood As Double
 Likelihood = ALTADS.AnalysisResults.LikelihoodValue