WeibullDataSet.AddSuspension: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{Template:APIClass|WeibullDataSet Class|WeibullDataSet}}
{{Template:APIClass|WeibullDataSet Class|WeibullDataSet}}
Inserts a suspension point to the WeibullDataSet.
== Declaration  ==
== Declaration  ==
{{APIName|AddSuspension(}}
{{APIName|AddSuspension(}}
Line 13: Line 15:
== Parameters ==
== Parameters ==
'''Value'''
'''Value'''
An WeibullDataSet object
The suspension point in time.


'''NumberInGroup'''
'''NumberInGroup'''
The main display label.
The number of units that were suspended at the '''Value''' time


{{APIComment|Adds a suspension data point to the collection of data points in the data set.}}
{{APIComment|Adds a suspension data point to the collection of data points in the data set.}}
== Usage Example ==
{{APIComment|Declare the WeibullDataSet. See [[New WeibullDataSet]] for additional details.}}
        Dim WDS as New WeibullDataSet
{{APIComment|Add values to the raw data.}}
        WDS.AddSuspension(1, 1)
        WDS.AddSuspension(2, 1)
        WDS.AddSuspension(3, 1)
{{APIComment|Get the number of suspensions. In this example, NumberOfSuspensions will be 3.}}
        Dim NumberOfSuspensions as Integer
        NumberOfSuspensions = WeibullDataSet.SuspensionCount

Revision as of 17:07, 11 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 = WeibullDataSet.SuspensionCount