WeibullDataSet.CalculateBestFit: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
{{Template:WeibullDataSet.CalculateBestFit.Cmt}} This is equivalent to clicking the '''Implement''' button in the Distribution Wizard. | {{Template:WeibullDataSet.CalculateBestFit.Cmt}} This is equivalent to clicking the '''Implement''' button in the Distribution Wizard. | ||
==Syntax== | == Syntax == | ||
<div style="margin-right: 150px;"> | |||
{{APIComment|'Declaration}} | |||
{{APIPrefix|Public Sub}}CalculateBestFit() | |||
<div style="margin-right: 150px;"> | |||
== Usage Example == | == Usage Example == |
Revision as of 23:37, 19 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. This is equivalent to clicking the Implement button in the Distribution Wizard.
Syntax
'Declaration Public SubCalculateBestFit()
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