WeibullDataSet.ClearDataSet: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
== Usage Example == | == Usage Example == | ||
{{APIComment|Declare | {{APIComment|'Declare a new WeibullDataSet object. See [[WeibullDataSet Class|WeibullDataSet]].}} | ||
Dim WDS as New WeibullDataSet | |||
{{APIComment|Add | {{APIComment|'Add failure times to the raw data. See [[WeibullDataSet.AddFailure]].}} | ||
WDS.AddFailure(1, 1) | |||
WDS.AddFailure(2, 1) | |||
WDS.AddFailure(3, 1) | |||
{{APIComment| | {{APIComment|'Fit the data to a life distribution.}} | ||
WDS.CalculateBestFit | |||
{{APIComment| | {{APIComment|'Retrieve the fitted distribution model.}} | ||
Dim WDSFittedModel as cModel | |||
WDSFittedModel = WDS.FittedModel | |||
{{APIComment|Use ClearDataSet to clear data and fitted model.}} | {{APIComment|'Use ClearDataSet to clear data and fitted model.}} | ||
WDS.ClearDataSet | |||
Revision as of 18:47, 6 May 2014
Clears all data in the data set and removes the fitted model, if any.
Syntax
- ClearDataSet()
Usage Example
'Declare a new WeibullDataSet object. See WeibullDataSet. Dim WDS as New WeibullDataSet 'Add failure times to the raw data. See WeibullDataSet.AddFailure. WDS.AddFailure(1, 1) WDS.AddFailure(2, 1) WDS.AddFailure(3, 1) 'Fit the data to a life distribution. WDS.CalculateBestFit 'Retrieve the fitted distribution model. Dim WDSFittedModel as cModel WDSFittedModel = WDS.FittedModel 'Use ClearDataSet to clear data and fitted model. WDS.ClearDataSet