ALTADataSet.Calculate: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 8: Line 8:
== Usage Example ==
== Usage Example ==


  {{APIComment|'Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}}
  {{APIComment|'Declare a new ALTADataSet object. See [[ALTADataSet Class|ALTADataSet]].}}
   Dim ALTADS as New ALTADataSet
   Dim ADS As New ALTADataSet("AddFailure_Example")
    
    
  {{APIComment|'Declare an [[ALTAStressProfile Class|ALTAStressProfile]]. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
  {{APIComment|'Define a new stress. See [[ALTADataSet.AddStressDefinition|AddStressDefinition]].}}
   Dim sp = New ALTAStressProfile("Profile1")
   ADS.AddStressDefinition("Stress1")
   sp.RepeatCycle = True
   sp.AddSegment(1, 250)
{{APIComment|'Add failure times to the data set.}}
   sp.AddSegment(2, 300)
   ADS.AddFailure(100, 1, 190)
   sp.AddSegment(3, 400)
   ADS.AddFailure(120, 1, 190)
    
   ADS.AddFailure(130, 1, 190)
{{APIComment|'Add values to the raw data.}}
   ADS.AddFailure(140, 1, 190)
   ALTADS.AddFailure(1, 1, sp)
   ADS.AddFailure(130, 1, 274)
   ALTADS.AddFailure(2, 1, sp)
  ADS.AddFailure(150, 1, 274)
   ALTADS.AddFailure(3, 1, sp)
   ADS.AddFailure(70, 1, 438)
  ADS.AddFailure(80, 1, 438)
   ADS.AddFailure(85, 1, 438)
   ADS.AddFailure(90, 1, 438)
    
    
  {{APIComment|'Calculate the ALTADataSet}}
  {{APIComment|'Calculate the ALTADataSet}}
   ALTADS.Calculate
   ALTADS.Calculate()

Revision as of 21:18, 5 May 2014


Fits the model (i.e., distribution and life-stress relationship) to the current data set using the settings specified in the AnalysisSettings property.

Syntax

  • Calculate()

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(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)
 
 'Calculate the ALTADataSet 
 ALTADS.Calculate()