ALTADataSet.AddSuspensionInterval: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
AddSuspensionInterval(
AddSuspensionInterval(
{{APIName|Value}}
{{APIName|Value}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|As Double}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIName|,}}
Line 20: Line 22:
AddSuspensionInterval(
AddSuspensionInterval(
{{APIName|Value}}
{{APIName|Value}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|As Double}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIName|,}}
Line 33: Line 37:
AddSuspensionInterval(
AddSuspensionInterval(
{{APIName|Value}}
{{APIName|Value}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|As Double}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIName|,}}

Revision as of 20:18, 25 February 2014


Adds a suspension interval and associated stress level to the data set.

Syntax

  • AddSuspensionInterval( Value As Double , 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( Value As Double , 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( Value As Double , 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 the ALTADataSet. See New ALTADataSet for additional details.

       Dim ALTADS as New ALTADataSet

Declare an ALTAStressProfile. See ALTAStressProfile for additional details.

       Dim sp = New ALTAStressProfile("Profile1")
       sp.RepeatCycle = True
       sp.AddSegment(1, 250)
       sp.AddSegment(2, 300)
       sp.AddSegment(3, 400)

Add values to the raw data.

       ALTADS.AddSuspensionInterval(1, 5, 1, sp)
       ALTADS.AddSuspensionInterval(6, 10, 1, sp)
       ALTADS.AddSuspensionInterval(11, 15, 1, sp)