ALTADataSet.Calculate: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) |
Chris Kahn (talk | contribs) |
||
Line 8: | Line 8: | ||
== Usage Example == | == Usage Example == | ||
{{APIComment|'Declare | {{APIComment|'Declare a new ALTADataSet object. See [[ALTADataSet Class|ALTADataSet]].}} | ||
Dim | Dim ADS As New ALTADataSet("AddFailure_Example") | ||
{{APIComment|' | {{APIComment|'Define a new stress. See [[ALTADataSet.AddStressDefinition|AddStressDefinition]].}} | ||
ADS.AddStressDefinition("Stress1") | |||
{{APIComment|'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) | |||
{{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()