ALTADataSet.Calculate: Difference between revisions

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


{{APIComment|Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}}
{{APIComment|'Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}}
        Dim ALTADS as New ALTADataSet
  Dim ALTADS as New ALTADataSet
 
 
{{APIComment|Declare an [[ALTAStressProfile Class|ALTAStressProfile]]. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
{{APIComment|'Declare an [[ALTAStressProfile Class|ALTAStressProfile]]. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
        Dim sp = New ALTAStressProfile("Profile1")
  Dim sp = New ALTAStressProfile("Profile1")
        sp.RepeatCycle = True
  sp.RepeatCycle = True
        sp.AddSegment(1, 250)
  sp.AddSegment(1, 250)
        sp.AddSegment(2, 300)
  sp.AddSegment(2, 300)
        sp.AddSegment(3, 400)
  sp.AddSegment(3, 400)
 
 
       
{{APIComment|'Add values to the raw data.}}
{{APIComment|Add values to the raw data.}}
  ALTADS.AddFailure(1, 1, sp)
        ALTADS.AddFailure(1, 1, sp)
  ALTADS.AddFailure(2, 1, sp)
        ALTADS.AddFailure(2, 1, sp)
  ALTADS.AddFailure(3, 1, sp)
        ALTADS.AddFailure(3, 1, sp)
 
 
{{APIComment|'Calculate the ALTADataSet}}
{{APIComment|Calculate the ALTADataSet}}
  ALTADS.Calculate
        ALTADS.Calculate

Revision as of 21:14, 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 the ALTADataSet. See New ALTADataSet for additional details. 
 Dim ALTADS as New ALTADataSet
 
 'Declare an ALTAStressProfile. See ALTAStressProfile for additional details. 
 Dim sp = New ALTAStressProfile("Profile1")
 sp.RepeatCycle = True
 sp.AddSegment(1, 250)
 sp.AddSegment(2, 300)
 sp.AddSegment(3, 400)
 
 'Add values to the raw data. 
 ALTADS.AddFailure(1, 1, sp)
 ALTADS.AddFailure(2, 1, sp)
 ALTADS.AddFailure(3, 1, sp)
 
 'Calculate the ALTADataSet 
 ALTADS.Calculate