ALTADataSet.AddSuspensionInterval: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) No edit summary |
||
Line 68: | Line 68: | ||
== Usage Example == | == Usage Example == | ||
{{APIComment|Declare | {{APIComment|'Declare a new ALTADataSet object. See [[ALTADataSet Class|ALTADataSet]].}} | ||
Dim ADS As New ALTADataSet("AddFailure_Example") | |||
{{APIComment| | {{APIComment|'Define a new stress. See [[ALTADataSet.AddStressDefinition|AddStressDefinition]].}} | ||
ADS.AddStressDefinition("Stress1") | |||
{{APIComment|'Add 2 interval censored suspensions at stress = 100 to the data set.}} | |||
{{APIComment|'The suspensions are between time = 10 and time = 20.}} | |||
ADS.AddSuspensions(10, 20, 2, 100) | |||
{{APIComment|Add | |||
Revision as of 21:07, 5 May 2014
Adds a suspension interval and associated stress level to the data set.
Syntax
- AddSuspensionInterval( StartValue As Double , EndValue As Double , NumberInGroup As Integer , Stress() As Object ) Adds interval censored suspensions to the data set, using the specified start/end times, the number of suspensions during the interval and an array of stress values/profiles for all the stresses.
- AddSuspensionInterval( StartValue As Double , EndValue As Double , NumberInGroup As Integer , Stress1 As Object ) Adds interval censored suspensions to the data set, using the specified start/end times, the number of suspensions during the interval and a single stress value/profile.
- AddSuspensionInterval( StartValue As Double , EndValue As Double , NumberInGroup As Integer , Stress1 As Object , Stress2 As Object ) Adds interval censored suspensions to the data set, using the specified start/end times, the number of suspensions during the interval and two stress values/profiles.
Parameters
- StartValue: The starting value of this suspension interval.
- EndValue: The ending value of this suspension interval.
- NumberInGroup: The number of units that were suspended during this interval.
- Stress(): An array containing numeric stress values or references to added ALTAStressProfiles.
- Stress1: A numeric stress value or reference to an added ALTAStressProfile.
- Stress2: A numeric stress value or reference to an added ALTAStressProfile.
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 2 interval censored suspensions at stress = 100 to the data set. 'The suspensions are between time = 10 and time = 20. ADS.AddSuspensions(10, 20, 2, 100)