ALTADataSet.ClearDataSet

From ReliaWiki
Jump to navigation Jump to search


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

Syntax

  • ClearDataSet()

Usage Example

 'Declare a new ALTADataSet object. See ALTADataSet. 
 Dim ADS As New ALTADataSet("AddFailure_Example")
 
 'Define a new stress. See AddStressDefinition. 
 ADS.AddStressDefinition("Stress1")

 'Add 2 interval censored failures at stress = 100 to the data set. 
 'The failures occurred between time = 10 and time = 20. 
 ADS.AddSuspensions(10, 20, 2, 100)
 'Add failure times to the data set. 
 ADS.AddFailure(100, 1, 190)
 ADS.AddFailure(120, 1, 190)
 ADS.AddFailure(130, 1, 190)
 ADS.AddFailure(140, 1, 190)
 ADS.AddFailure(130, 1, 274)
 ADS.AddFailure(150, 1, 274)
 ADS.AddFailure(70, 1, 438)
 ADS.AddFailure(80, 1, 438)
 ADS.AddFailure(85, 1, 438)
 ADS.AddFailure(90, 1, 438)
 
 'Clear the defined stress and failure times from the data set. 
 ADS.ClearDataSet