ALTADataSet.AddFailureInterval: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 68: Line 68:
== Usage Example ==
== Usage Example ==


{{APIComment|Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}}
{{APIComment|'Declare a new ALTADataSet object. See [[ALTADataSet Class|ALTADataSet]].}}
        Dim ALTADS as New ALTADataSet
  Dim ADS As New ALTADataSet("AddFailure_Example")
 
 
{{APIComment|Declare an [[ALTAStressProfile Class|ALTAStressProfile]]. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
{{APIComment|'Define a new stress. See [[ALTADataSet.AddStressDefinition|AddStressDefinition]].}}
        Dim sp = New ALTAStressProfile("Profile1")
  ADS.AddStressDefinition("Stress1")
        sp.RepeatCycle = True
        sp.AddSegment(1, 250)
{{APIComment|'Add 2 interval censored data points at stress = 100 to the data set. The failures occurred between time= 10 and time = 20.}}
        sp.AddSegment(2, 300)
  ADS.AddSuspensions(10, 20, 2, 100)
        sp.AddSegment(3, 400)
 
{{APIComment|Add values to the raw data.}}
        ALTADS.AddFailureInterval(1, 5, 1, sp)
        ALTADS.AddFailureInterval(6, 10, 1, sp)
        ALTADS.AddFailureInterval(11, 15, 1, sp)

Revision as of 21:06, 5 May 2014


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

Syntax

  • AddFailureInterval( StartValue As Double , EndValue As Double , NumberInGroup As Integer , Stress() As Object ) Adds interval censored failures to the data set, using the specified start/end times, the number of failures during the interval and an array of stress values/profiles for all the stresses.
  • AddFailureInterval( StartValue As Double , EndValue As Double , NumberInGroup As Integer , Stress1 As Object ) Adds interval censored failures to the data set, using the specified start/end times, the number of failures during the interval and a single stress value/profile.
  • AddFailureInterval( StartValue As Double , EndValue As Double , NumberInGroup As Integer , Stress1 As Object , Stress2 As Object ) Adds interval censored failures to the data set, using the specified start/end times, the number of failures during the interval and two stress values/profiles.


Parameters

StartValue: The starting value of this failure interval.
EndValue: The ending value of this failure interval.
NumberInGroup: The number of units that failed 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 data points at stress = 100 to the data set. The failures occurred between time= 10 and time = 20. 
 ADS.AddSuspensions(10, 20, 2, 100)