ALTADataSet.Calculate
Jump to navigation
Jump to search
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. ALTADS.Calculate() 'Retrieve the fitted model. See cModel. Dim model As cModel model = ALTADS.FittedModel