ALTADataSet.ClearDataSet: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 16: Line 16:
  {{APIComment|'The failures occurred between time = 10 and time = 20.}}
  {{APIComment|'The failures occurred between time = 10 and time = 20.}}
   ADS.AddSuspensions(10, 20, 2, 100)
   ADS.AddSuspensions(10, 20, 2, 100)
 
 
  {{APIComment|'Add failure times to the data set.}}
  {{APIComment|'Add failure times to the data set.}}
   ADS.AddFailure(100, 1, 190)
   ADS.AddFailure(100, 1, 190)
Line 30: Line 30:
    
    
  {{APIComment|'Clear the defined stress and failure times from the data set.}}
  {{APIComment|'Clear the defined stress and failure times from the data set.}}
   ADS.ClearDataSet
   ADS.ClearDataSet()

Revision as of 21:10, 5 May 2014


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()