WeibullDataSet.CalculateBestFit
Jump to navigation
Jump to search
Automatically finds the best fitting distribution and fits that distribution to the current data set using the settings specified in the BestFitSettings property.
This is equivalent to clicking the Implement button in the Distribution Wizard.
Syntax
- CalculateBestFit()
Usage Example
'Declare a new WeibullDataSet object. See WeibullDataSet. Dim WDS As New WeibullDataSet("AddFailure_Example") 'Add failure times to the data set. WDS.AddFailure(100, 1) WDS.AddFailure(120, 1) WDS.AddFailure(130, 1) 'Fit the data to a life distribution, using all default analysis settings. WDS.CalculateBestFit() 'Retrieve the fitted life distribution model. See cModel. Dim model As cModel model = WDS.FittedModel