WeibullAnalysisResults Class: Difference between revisions

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


  {{APIComment|'Declare the WeibullDataSet. See [[New WeibullDataSet]] for additional details.}}
  {{APIComment|'Declare the WeibullDataSet. See [[WeibullDataSet Class|WeibullDataSet]].}}
   Dim WDS as New WeibullDataSet
   Dim WDS as New WeibullDataSet
    
    
  {{APIComment|'Add values to the raw data. See [[WeibullDataSet.AddFailure|AddFailure]] for additional details.}}
  {{APIComment|'Add three failure times to the raw data. See [[WeibullDataSet.AddFailure|AddFailure]].}}
   WDS.AddFailure(1, 1)
   WDS.AddFailure(1, 1)
   WDS.AddFailure(2, 1)
   WDS.AddFailure(2, 1)
   WDS.AddFailure(3, 1)
   WDS.AddFailure(3, 1)
    
    
  {{APIComment|'Calculate the WeibullDataSet. See [[WeibullDataSet.CalculateBestFit|CalculateBestFit]] for additional details.}}
  {{APIComment|'Fit the data to a life distribution, using all default settings. See [[WeibullDataSet.CalculateBestFit|CalculateBestFit]].}}
   WDS.Calculate
   WDS.Calculate
    
    

Revision as of 15:46, 28 April 2014


Stores the correlation coefficient, likelihood value and percent non-zero values that were estimated from the analysis, if applicable.

These are equivalent to the "Rho," "LK Value" and "Pnz" results that can be shown in the Analysis Summary of the standard folio control panel.

Properties

  • CorrelationCoefficient (as double) The correlation coefficient value (Rho).
  • LikelihoodValue (as double) The likelihood value (LK Value).
  • PercentNonZero (as double) The percent non-zero value (Pnz).

Formatted Usage Example

 'Declare the WeibullDataSet. See WeibullDataSet. 
 Dim WDS as New WeibullDataSet
 
 'Add three failure times to the raw data. See AddFailure. 
 WDS.AddFailure(1, 1)
 WDS.AddFailure(2, 1)
 WDS.AddFailure(3, 1)
 
 'Fit the data to a life distribution, using all default settings. See CalculateBestFit. 
 WDS.Calculate
 
 'Retrieve the results.  In this example, the correlation coefficient result value is retrieved. 
 Dim CorrCoeff As Double
 CorrCoeff = WDS.AnalysisResults.CorrelationCoefficient