WeibullDataSet.ClearDataSet

From ReliaWiki
Revision as of 17:40, 19 April 2016 by Kate Racaza (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
APIWiki.png


Member of: SynthesisAPI.WeibullDataSet


Clears all data in the data set and removes the fitted model, if any.

Syntax

.ClearDataSet

Example

VBA

 'Declare a new WeibullDataSet object.  
  Dim WDS As New WeibullDataSet
 
 'Add the failure times 10, 20 and 30 to the data set.  
  Call WDS.AddFailure(10, 1)
  Call WDS.AddFailure(20, 1)
  Call WDS.AddFailure(30, 1)
  
 'Fit the data to a life distribution. 
  WDS.CalculateBestFit
 
 'Retrieve the fitted distribution model. 
  Dim WDSFittedModel as cModel
  Set WDSFittedModel = WDS.FittedModel
 
 'Clear the data set and fitted model.         
  WDS.ClearDataSet
VB.NET

 'Declare a new WeibullDataSet object.  
  Dim WDS As New WeibullDataSet
 
 'Add the failure times 10, 20 and 30 to the data set.  
  WDS.AddFailure(10, 1)
  WDS.AddFailure(20, 1)
  WDS.AddFailure(30, 1)
  
 'Fit the data to a life distribution. 
  WDS.CalculateBestFit
 
 'Retrieve the fitted distribution model. 
  Dim WDSFittedModel as cModel
  WDSFittedModel = WDS.FittedModel
 
 'Clear the data set and fitted model.         
  WDS.ClearDataSet