ALTADataSet.Calculate: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) No edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
<onlyinclude> | <onlyinclude>Analyzes the data set and returns a message box that shows the estimated parameters of the model (i.e., distribution and life-stress relationship), based on the settings specified in the <code>AnalysisSettings</code> property of the ALTADataSet object. In addition, it creates a retrievable [[CModel Class|cModel]] object that represents the fitted model from the accelerated life testing data analysis.</onlyinclude> | ||
== Syntax == | == Syntax == | ||
Line 25: | Line 25: | ||
{{APIPrefix|Call}} ADS.AddFailure_2(140, 1, 235) | {{APIPrefix|Call}} ADS.AddFailure_2(140, 1, 235) | ||
{{APIComment|' | {{APIComment|'Analyze the data set, using all default analysis settings.}} | ||
{{APIPrefix|Call}} ADS.Calculate() | {{APIPrefix|Call}} ADS.Calculate() | ||
Line 51: | Line 51: | ||
ADS.AddFailure(140, 1, 235) | ADS.AddFailure(140, 1, 235) | ||
{{APIComment|' | {{APIComment|'Analyze the data set, using all default analysis settings.}} | ||
ADS.Calculate() | ADS.Calculate() | ||
Revision as of 22:14, 19 May 2016
Member of: SynthesisAPI.ALTADataSet
Analyzes the data set and returns a message box that shows the estimated parameters of the model (i.e., distribution and life-stress relationship), based on the settings specified in the AnalysisSettings
property of the ALTADataSet object. In addition, it creates a retrievable cModel object that represents the fitted model from the accelerated life testing data analysis.
Syntax
.Calculate()
Example
VBA 'Declare a new ALTADataSet object. Dim ADS As New ALTADataSet 'Define a stress type with use stress level = 300. Call ADS.AddStressDefinition("Stress1",,300) 'Add failure times for Stress1 = 190 and 235. Call ADS.AddFailure_2(100, 1, 190) Call ADS.AddFailure_2(120, 1, 190) Call ADS.AddFailure_2(130, 1, 235) Call ADS.AddFailure_2(140, 1, 235) 'Analyze the data set, using all default analysis settings. Call ADS.Calculate() 'Retrieve the fitted model. Dim model As cModel Set model = ADS.FittedModel 'Using the model, calculate the reliability at 100 hrs and display the result. Dim r As Double r = model.reliability(100) MsgBox("Reliability at 100 hrs: " & r)
VB.NET 'Declare a new ALTADataSet object. Dim ADS As New ALTADataSet 'Define a stress type with use stress level = 300. ADS.AddStressDefinition("Stress1",,300) 'Add failure times for Stress1 = 190 and 235. ADS.AddFailure(100, 1, 190) ADS.AddFailure(120, 1, 190) ADS.AddFailure(130, 1, 235) ADS.AddFailure(140, 1, 235) 'Analyze the data set, using all default analysis settings. ADS.Calculate() 'Retrieve the fitted model. Dim model As cModel model = ADS.FittedModel 'Using the model, calculate the reliability at 100 hrs and display the result. Dim r As Double r = model.reliability(100) MsgBox("Reliability at 100 hrs: " & r)