WeibullDataSet.CalculateBestFit

Determines which of the selected life distributions best fits the data set (similar to the Distribution Wizard feature in Weibull++) and creates a cModel object that represents the fitted model of the recommended distribution. Returns a message box that shows the estimated parameters of the fitted model.

To specify the life distributions to be considered, the parameter estimation method and other criteria for evaluating the fit, use the  property of the associated   object.

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.BestFitSettings.Analysis = WeibullSolverMethod_MLE WDS.CalculateBestFit r Double r = WDS.FittedModel.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.BestFitSettings.Analysis = WeibullSolverMethod.MLE WDS.CalculateBestFit r Double r = WDS.FittedModel.Reliability(100) MsgBox( & r)