ALTADataSet.ClearDataSet: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 12: Line 12:
  {{APIComment|'Define a new stress. See [[ALTADataSet.AddStressDefinition|AddStressDefinition]].}}
  {{APIComment|'Define a new stress. See [[ALTADataSet.AddStressDefinition|AddStressDefinition]].}}
   ADS.AddStressDefinition("Stress1")
   ADS.AddStressDefinition("Stress1")
{{APIComment|'Add 2 interval censored failures at stress = 100 to the data set.}}
{{APIComment|'The failures occurred between time = 10 and time = 20.}}
  ADS.AddSuspensions(10, 20, 2, 100)
    
    
  {{APIComment|'Add failure times to the data set.}}
  {{APIComment|'Add failure times to the data set.}}
Line 21: Line 17:
   ADS.AddFailure(120, 1, 190)
   ADS.AddFailure(120, 1, 190)
   ADS.AddFailure(130, 1, 190)
   ADS.AddFailure(130, 1, 190)
  ADS.AddFailure(140, 1, 190)
   ADS.AddFailure(130, 1, 274)
   ADS.AddFailure(130, 1, 274)
   ADS.AddFailure(150, 1, 274)
   ADS.AddFailure(150, 1, 274)
Line 27: Line 22:
   ADS.AddFailure(80, 1, 438)
   ADS.AddFailure(80, 1, 438)
   ADS.AddFailure(85, 1, 438)
   ADS.AddFailure(85, 1, 438)
  ADS.AddFailure(90, 1, 438)
    
    
  {{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 16:23, 6 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 failure times to the data set. 
 ADS.AddFailure(100, 1, 190)
 ADS.AddFailure(120, 1, 190)
 ADS.AddFailure(130, 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)
 
 'Clear the defined stress and failure times from the data set. 
 ADS.ClearDataSet()