ALTADataSet.Calculate: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 27: Line 27:
    
    
  {{APIComment|'Fit the data to a model, using all default analysis settings.}}
  {{APIComment|'Fit the data to a model, using all default analysis settings.}}
   ALTADS.Calculate()
   ADS.Calculate()
    
    
  {{APIComment|'Retrieve the fitted model. See [[cModel Class|cModel]].}}
  {{APIComment|'Retrieve the fitted model. See [[cModel Class|cModel]].}}
   Dim model As cModel
   Dim model As cModel
   model = ALTADS.FittedModel
   model = ADS.FittedModel

Revision as of 20:06, 6 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)
 
 'Fit the data to a model, using all default analysis settings. 
 ADS.Calculate()
 
 'Retrieve the fitted model. See cModel. 
 Dim model As cModel
 model = ADS.FittedModel