WeibullDataSet.ClearDataSet: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) |
||
Line 22: | Line 22: | ||
WDSFittedModel = WDS.FittedModel | WDSFittedModel = WDS.FittedModel | ||
{{APIComment|'Use ClearDataSet to clear data and fitted model.}} | |||
WDS.ClearDataSet | 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