WeibullDataSet.CalculateBestFit: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
{{Template:WeibullDataSet.CalculateBestFit.Cmt}}  
{{Template:WeibullDataSet.CalculateBestFit.Cmt}}  


If the analysis is successful, the [[WeibullDataSet.FittedModel|FittedModel]] property will be set. Otherwise, it is cleared.
If the analysis is successful, the [[WeibullDataSet.FittedModel|FittedModel]] property will be set. Otherwise, the property is cleared.


== Method Syntax==
== Method Syntax==

Revision as of 18:56, 10 February 2014


Automatically finds the best fitting distribution and fits that distribution to the current data set using the settings specified in the BestFitSettings property.

If the analysis is successful, the FittedModel property will be set. Otherwise, the property is cleared.

Method Syntax

CalculateBestFit()

Usage Example

Declare the WeibullDataSet. See New WeibullDataSet for additional details.

       Dim WDS as New WeibullDataSet

Add values to the raw data. See WeibullDataSet.AddFailure for additional details.

       WDS.AddFailure(1, 1)
       WDS.AddFailure(2, 1)
       WDS.AddFailure(3, 1)

Calculate the Fitted Model using the raw data.

       WDS.CalculateBestFit

Use the Fitted Model using the raw data.

       Dim WDSFittedModel as cModel
       WDSFittedModel = WDS.FittedModel