WeibullDataSet.AddSuspension: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Template:APIClass|WeibullDataSet Class|WeibullDataSet}}
{{Template:API}}{{Template:APIBreadcrumb|.[[WeibullDataSet Class|WeibullDataSet]]}}
Inserts a suspension point to the WeibullDataSet.


== Declaration  ==
{{APIName|AddSuspension(}}
{{APIPrefix|ByVal}}
{{APIName|Value}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|NumberInGroup}}
{{APIPrefix|As Integer}}
{{APIName|)}}


== Parameters ==
<onlyinclude>Adds suspensions to the data set.</onlyinclude>
'''Value'''
The suspension point in time.


'''NumberInGroup'''
== Syntax  ==
The number of units that were suspended at the '''Value''' time
'''.AddSuspension'''(''Value'', ''NumberInGroup'')


{{APIComment|Adds a suspension data point to the collection of data points in the data set.}}
===Parameters===
''Value''
:Required. Double. The suspension time.  


== Usage Example ==
''NumberInGroup''
:Required. Integer. The number of suspended units at the time of suspension.


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


{{APIComment|Add values to the raw data.}}
== Example ==
        WDS.AddSuspension(1, 1)
'''VBA'''
        WDS.AddSuspension(2, 1)
        WDS.AddSuspension(3, 1)
{{APIComment|'Declare a new WeibullDataSet object.}}
  {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet
 
{{APIComment|'Add suspensions at times 1, 2 and 3 to the data set.}}
  {{APIPrefix|Call}} WDS.AddSuspension(1, 1)
  {{APIPrefix|Call}} WDS.AddSuspension(2, 1)
  {{APIPrefix|Call}} WDS.AddSuspension(3, 1)
 
'''VB.NET'''
{{APIComment|'Declare a new WeibullDataSet object.}}
  {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet
 
{{APIComment|'Add suspensions at times 1, 2 and 3 to the data set.}}
  WDS.AddSuspension(1, 1)
  WDS.AddSuspension(2, 1)
  WDS.AddSuspension(3, 1)

Latest revision as of 22:17, 30 March 2016

APIWiki.png


Member of: SynthesisAPI.WeibullDataSet


Adds suspensions to the data set.

Syntax

.AddSuspension(Value, NumberInGroup)

Parameters

Value

Required. Double. The suspension time.

NumberInGroup

Required. Integer. The number of suspended units at the time of suspension.


Example

VBA

 'Declare a new WeibullDataSet object.  
  Dim WDS As New WeibullDataSet
 
 'Add suspensions at times 1, 2 and 3 to the data set. 
  Call WDS.AddSuspension(1, 1)
  Call WDS.AddSuspension(2, 1)
  Call WDS.AddSuspension(3, 1)
VB.NET

 'Declare a new WeibullDataSet object.  
  Dim WDS As New WeibullDataSet
 
 'Add suspensions at times 1, 2 and 3 to the data set. 
  WDS.AddSuspension(1, 1)
  WDS.AddSuspension(2, 1)
  WDS.AddSuspension(3, 1)