WeibullAnalysisResults Class: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) No edit summary |
Kate Racaza (talk | contribs) mNo edit summary |
||
Line 17: | Line 17: | ||
== Example == | == Example == | ||
VBA | '''VBA''' | ||
{{APIComment|'Declare a WeibullDataSet.}} | {{APIComment|'Declare a WeibullDataSet.}} | ||
Line 35: | Line 35: | ||
Msgbox(CorrCoeff) | Msgbox(CorrCoeff) | ||
VB.NET | '''VB.NET''' | ||
{{APIComment|'Declare a WeibullDataSet.}} | {{APIComment|'Declare a WeibullDataSet.}} |
Revision as of 21:53, 13 April 2016
Member of: SynthesisAPI
Represents additional results from the life data analysis of an associated WeibullDataSet object.
Properties
Name | Description |
---|---|
CorrelationCoefficient | Gets the correlation coefficient (rho value) if the parameters were estimated using rank regression. Double. |
LikelihoodValue | Gets the likelihood function value (LK value). Double. |
PercentNonZero | Gets the percent non-zero (Pnz) value if the data set contains failure at t = 0. Double. A value of 1 indicates that there are no zero failure times in the data set; a decimal value indicates that the data set includes zero failure times. |
Example
VBA 'Declare a WeibullDataSet. Dim WDS as New WeibullDataSet 'Add the failure times 10, 20 and 30 to the data set. Call WDS.AddFailure(10, 1) Call WDS.AddFailure(20, 1) Call WDS.AddFailure(30, 1) 'Fit the data to a life distribution, using all default settings. WDS.Calculate 'Retrieve the value of the correlation coefficient. Dim CorrCoeff As Double CorrCoeff = WDS.AnalysisResults.CorrelationCoefficient Msgbox(CorrCoeff)
VB.NET 'Declare a WeibullDataSet. Dim WDS as New WeibullDataSet 'Add the failure times 10, 20 and 30 to the data set. WDS.AddFailure(10, 1) WDS.AddFailure(20, 1) WDS.AddFailure(30, 1) 'Fit the data to a life distribution, using all default settings. WDS.Calculate 'Retrieve the value of the correlation coefficient. Dim CorrCoeff As Double CorrCoeff = WDS.AnalysisResults.CorrelationCoefficient Msgbox(CorrCoeff)