ALTADataSet.ClearDataSet: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
| Chris Kahn (talk | contribs) No edit summary | Chris Kahn (talk | contribs) | ||
| Line 7: | Line 7: | ||
| == Usage Example == | == Usage Example == | ||
| {{APIComment|Declare  |  {{APIComment|'Declare a new ALTADataSet object. See [[ALTADataSet Class|ALTADataSet]].}} | ||
|   Dim ADS As New ALTADataSet("AddFailure_Example") | |||
|  {{APIComment|'Define a new stress. See [[ALTADataSet.AddStressDefinition|AddStressDefinition]].}} | |||
|   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| |  {{APIComment|'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) | |||
|  {{APIComment|'Clear the defined stress and failure times from the data set.}} | |||
| {{APIComment| |   ADS.ClearDataSet | ||
Revision as of 21:09, 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
