ALTADataSet.AddFailure: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
{{APIName|)}}
{{APIName|)}}
<br> {{APIComment|Adds a failure data point to the collection of data points in the data set.}}
<br> {{APIComment|Adds a failure data point to the collection of data points in the data set.}}
 
{{APIName|AddFailure(}}
{{APIPrefix|ByVal}}
{{APIName|Value}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|NumberInGroup}}
{{APIPrefix|As Integer}}
{{APIName|,}}
{{APIPrefix|ByRef}}
{{APIName|Stress1}}
{{APIPrefix|As Object}}
{{APIName|)}}
<br> {{APIComment|Adds a failure data point to the collection of data points in the data set.}}
{{APIName|AddFailure(}}
{{APIPrefix|ByVal}}
{{APIName|Value}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|NumberInGroup}}
{{APIPrefix|As Integer}}
{{APIName|,}}
{{APIPrefix|ByRef}}
{{APIName|Stress1, Stress2}}
{{APIPrefix|As Object}}
{{APIName|)}}
<br> {{APIComment|Adds a failure data point to the collection of data points in the data set.}}


== Parameters ==
== Parameters ==
Line 31: Line 58:
== Usage Example ==
== Usage Example ==


{{APIComment|Declare the WeibullDataSet. See [[New WeibullDataSet]] for additional details.}}
{{APIComment|Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}}
         Dim WDS as New WeibullDataSet
         Dim ALTADS as New ALTADataSet


{{APIComment|Add values to the raw data.}}
{{APIComment|Add values to the raw data.}}
         WDS.AddFailure(1, 1)
         ALTADS.AddFailure(1, 1)
         WDS.AddFailure(2, 1)
         ALTADS.AddFailure(2, 1)
         WDS.AddFailure(3, 1)
         ALTADS.AddFailure(3, 1)


{{APIComment|Get the number of failures. In this example, NumberOfFailures will be 3.}}
{{APIComment|Get the number of failures. In this example, NumberOfFailures will be 3.}}
         Dim NumberOfFailures as Integer
         Dim NumberOfFailures as Integer
         NumberOfFailures = WeibullDataSet.FailureCount
         NumberOfFailures = WeibullDataSet.FailureCount

Revision as of 00:12, 12 September 2013



Inserts a failure point to the WeibullDataSet.

Method Syntax

AddFailure( ByVal Value As Double , ByVal NumberInGroup As Integer , ByRef Stress() As Object )
Adds a failure data point to the collection of data points in the data set. AddFailure( ByVal Value As Double , ByVal NumberInGroup As Integer , ByRef Stress1 As Object )
Adds a failure data point to the collection of data points in the data set. AddFailure( ByVal Value As Double , ByVal NumberInGroup As Integer , ByRef Stress1, Stress2 As Object )
Adds a failure data point to the collection of data points in the data set.

Parameters

Value The failure point in time.

NumberInGroup The number of units that failed at the Value time.

Adds a failure data point to the collection of data points in the data set.

Usage Example

Declare the ALTADataSet. See New ALTADataSet for additional details.

       Dim ALTADS as New ALTADataSet

Add values to the raw data.

       ALTADS.AddFailure(1, 1)
       ALTADS.AddFailure(2, 1)
       ALTADS.AddFailure(3, 1)

Get the number of failures. In this example, NumberOfFailures will be 3.

       Dim NumberOfFailures as Integer
       NumberOfFailures = WeibullDataSet.FailureCount