ALTADataSet.Calculate: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) |
Chris Kahn (talk | contribs) |
||
Line 28: | Line 28: | ||
{{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() | ALTADS.Calculate() | ||
{{APIComment|'Retrieve the fitted model. See [[cModel Class|cModel]].}} | |||
Dim model As cModel | |||
model = ALTADS.FittedModel |
Revision as of 16:40, 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. ALTADS.Calculate() 'Retrieve the fitted model. See cModel. Dim model As cModel model = ALTADS.FittedModel