ALTAAnalysisResults Class: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) |
Chris Kahn (talk | contribs) |
||
Line 10: | Line 10: | ||
== Usage Example == | == Usage Example == | ||
<div style="margin-right: 150px;"> | |||
{{APIComment|'Declare the ALTADataSet. See [[ALTADataSet Constructors]].}} | {{APIComment|'Declare the ALTADataSet. See [[ALTADataSet Constructors]].}} | ||
Dim ALTADS as New ALTADataSet | Dim ALTADS as New ALTADataSet | ||
Line 27: | Line 28: | ||
Dim Likelihood As Double | Dim Likelihood As Double | ||
Likelihood = ALTADS.AnalysisResults.LikelihoodValue | Likelihood = ALTADS.AnalysisResults.LikelihoodValue | ||
</div> |
Revision as of 20:54, 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(5, 1, 250) '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