WeibullDataSet.AddSuspension: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 34: Line 34:
{{APIComment|Get the number of suspensions. In this example, NumberOfSuspensions will be 3.}}
{{APIComment|Get the number of suspensions. In this example, NumberOfSuspensions will be 3.}}
         Dim NumberOfSuspensions as Integer
         Dim NumberOfSuspensions as Integer
         NumberOfSuspensions = WeibullDataSet.SuspensionCount
         NumberOfSuspensions = WDS.SuspensionCount

Revision as of 22:43, 12 September 2013


Inserts a suspension point to the WeibullDataSet.

Declaration

AddSuspension( ByVal Value As Double , ByVal NumberInGroup As Integer )

Parameters

Value The suspension point in time.

NumberInGroup The number of units that were suspended at the Value time

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

Usage Example

Declare the WeibullDataSet. See New WeibullDataSet for additional details.

       Dim WDS as New WeibullDataSet

Add values to the raw data.

       WDS.AddSuspension(1, 1)
       WDS.AddSuspension(2, 1)
       WDS.AddSuspension(3, 1)

Get the number of suspensions. In this example, NumberOfSuspensions will be 3.

       Dim NumberOfSuspensions as Integer
       NumberOfSuspensions = WDS.SuspensionCount