WeibullDataSet.CalculateBestFit

Performs goodness of fit tests to find the distribution that best fits the data set (similar to the Distribution Wizard feature in Weibull++). Returns a message box that shows the estimated parameters of the distribution that best fits the data. In addition, it creates a retrievable cModel object that represents the fitted model from the life data analysis.

Use the  property of the WeibullDataSet object to specify the criteria for evaluating the fit.

Syntax
'''.CalculateBestFit

Example
VBA WDS WeibullDataSet WDS.AddFailure(100, 1) WDS.AddFailure(120, 1) WDS.AddFailure(130, 1) WDS.BestFitSettings.AllowExponential1 = False WDS.BestFitSettings.AllowExponential2 = False WDS.BestFitSettings.AllowNormal = True WDS.BestFitSettings.AllowLognormal = True WDS.BestFitSettings.AllowWeibull2 = True WDS.BestFitSettings.AllowWeibull3 = False WDS.BestFitSettings.AllowGamma = False WDS.BestFitSettings.AllowGenGamma = False WDS.BestFitSettings.AllowLogistic = False WDS.BestFitSettings.AllowLoglogistic = False WDS.BestFitSettings.AllowGumbel = False WDS.CalculateBestFit model cModel model = WDS.FittedModel r Double r = model.reliability(100) MsgBox( & r)

VB.NET WDS WeibullDataSet WDS.AddFailure(100, 1) WDS.AddFailure(120, 1) WDS.AddFailure(130, 1) WDS.BestFitSettings.AllowExponential1 = False WDS.BestFitSettings.AllowExponential2 = False WDS.BestFitSettings.AllowNormal = True WDS.BestFitSettings.AllowLognormal = True WDS.BestFitSettings.AllowWeibull2 = True WDS.BestFitSettings.AllowWeibull3 = False WDS.BestFitSettings.AllowGamma = False WDS.BestFitSettings.AllowGenGamma = False WDS.BestFitSettings.AllowLogistic = False WDS.BestFitSettings.AllowLoglogistic = False WDS.BestFitSettings.AllowGumbel = False WDS.CalculateBestFit model cModel model = WDS.FittedModel r Double r = model.reliability(100) MsgBox( & r)