ALTADataSet.ClearDataSet: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Template:APIClass|ALTADataSet Class|ALTADataSet}}
{{Template:API}}{{Template:APIBreadcrumb|.[[ALTADataSet_Class|ALTADataSet]]}}
{{Template:ALTADataSet.ClearDataSet.Cmt}}
 
 
<onlyinclude>Clears all data in the data set and removes the fitted model, if any. </onlyinclude>


== Syntax ==
== Syntax ==
*ClearDataSet()
'''.ClearDataSet()'''


== Usage Example ==


  {{APIComment|'Declare a new ALTADataSet object. See [[ALTADataSet Class|ALTADataSet]].}}
== Example ==
  Dim ADS As New ALTADataSet("AddFailure_Example")
 
'''VBA'''
  {{APIComment|'Declare a new ALTADataSet object.}}
  {{APIPrefix|Dim}} ADS {{APIPrefix|As New}} ALTADataSet
 
{{APIComment|'Define a stress type.}}
  {{APIPrefix|Call}} ADS.AddStressDefinition({{APIString|"Stress1"}},,10)
 
{{APIComment|'Add failure times for Stress1 &#61; 190.}}
  {{APIPrefix|Call}} ADS.AddFailure_2(100, 1, 190)
  {{APIPrefix|Call}} ADS.AddFailure_2(120, 1, 190)
  {{APIPrefix|Call}} ADS.AddFailure_2(130, 1, 190)
{{APIComment|'Clear the defined stress and failure times from the data set.}}
  {{APIPrefix|Call}} ADS.ClearDataSet()
 
 
 
'''VB.NET'''
 
{{APIComment|'Declare a new ALTADataSet object.}}  
  {{APIPrefix|Dim}} ADS {{APIPrefix|As New}} ALTADataSet
    
    
  {{APIComment|'Define a new stress. See [[ALTADataSet.AddStressDefinition|AddStressDefinition]].}}
  {{APIComment|'Define a stress type.}}
  ADS.AddStressDefinition("Stress1")
  ADS.AddStressDefinition({{APIString|"Stress1"}},,10)
    
    
  {{APIComment|'Add failure times to the data set.}}
  {{APIComment|'Add failure times for Stress1 &#61; 190.}}
  ADS.AddFailure(100, 1, 190)
  ADS.AddFailure(100, 1, 190)
  ADS.AddFailure(120, 1, 190)
  ADS.AddFailure(120, 1, 190)
  ADS.AddFailure(130, 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)
    
    
  {{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()

Latest revision as of 23:34, 5 May 2016

APIWiki.png


Member of: SynthesisAPI.ALTADataSet


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

Syntax

.ClearDataSet()


Example

VBA

 'Declare a new ALTADataSet object.  
  Dim ADS As New ALTADataSet
 
 'Define a stress type. 
  Call ADS.AddStressDefinition("Stress1",,10)
  
 'Add failure times for Stress1 = 190. 
  Call ADS.AddFailure_2(100, 1, 190)
  Call ADS.AddFailure_2(120, 1, 190)
  Call ADS.AddFailure_2(130, 1, 190)

 'Clear the defined stress and failure times from the data set. 
  Call ADS.ClearDataSet()


VB.NET
 
 'Declare a new ALTADataSet object.  
  Dim ADS As New ALTADataSet
 
 'Define a stress type. 
  ADS.AddStressDefinition("Stress1",,10)
 
 'Add failure times for Stress1 = 190. 
  ADS.AddFailure(100, 1, 190)
  ADS.AddFailure(120, 1, 190)
  ADS.AddFailure(130, 1, 190)
 
 'Clear the defined stress and failure times from the data set. 
  ADS.ClearDataSet()