WeibullDataSet.AddSuspensionInterval: 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 interval to the WeibullDataSet.


== Declaration  ==
<onlyinclude>Adds interval censored suspensions to the data set.</onlyinclude>
{{APIName|AddSuspensionInterval(}}
{{APIPrefix|ByVal}}
{{APIName|Value}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|EndValue}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|NumberInGroup}}
{{APIPrefix|AsLong}}
{{APIName|)}}


== Syntax  ==
'''.AddSuspensionInterval'''(''StartValue'', ''EndValue'', ''NumberInGroup'')


== Parameters ==
===Parameters===
'''Value'''
''StartValue''
The starting value of this suspension interval.
:Required. Double. The starting value of the suspension interval.


'''EndValue'''
''EndValue''
The ending value of this suspension interval.
:Required. Double. The ending value of the suspension interval.


'''NumberInGroup'''
''NumberInGroup''
The number of units that were suspended during this interval.
:Required. Integer. The number of units that were suspended during the interval.


{{APIComment|Adds a Suspension interval data point to the collection of data points in the data set.}}


== Usage Example ==
== Example ==
'''VBA'''
{{APIComment|'Declare a new WeibullDataSet object.}}
  {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet
 
{{APIComment|'Add interval suspensions to the data set.}}
  {{APIPrefix|Call}} WDS.AddSuspensionInterval(1, 5, 1)
  {{APIPrefix|Call}} WDS.AddSuspensionInterval(6, 10, 1)
  {{APIPrefix|Call}} WDS.AddSuspensionInterval(11, 15, 1)


{{APIComment|Declare the WeibullDataSet. See [[New WeibullDataSet]] for additional details.}}
'''VB.NET'''
        Dim WDS as New WeibullDataSet
 
{{APIComment|'Declare a new WeibullDataSet object.}}  
{{APIComment|Add values to the raw data.}}
  {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet
        WDS.AddSuspensionInterval(1, 5, 1)
 
        WDS.AddSuspensionInterval(6, 10, 1)
{{APIComment|'Add interval suspensions to the data set.}}  
        WDS.AddSuspensionInterval(11, 15, 1)
  WDS.AddSuspensionInterval(1, 5, 1)
  WDS.AddSuspensionInterval(6, 10, 1)
  WDS.AddSuspensionInterval(11, 15, 1)

Latest revision as of 22:18, 30 March 2016

APIWiki.png


Member of: SynthesisAPI.WeibullDataSet


Adds interval censored suspensions to the data set.

Syntax

.AddSuspensionInterval(StartValue, EndValue, NumberInGroup)

Parameters

StartValue

Required. Double. The starting value of the suspension interval.

EndValue

Required. Double. The ending value of the suspension interval.

NumberInGroup

Required. Integer. The number of units that were suspended during the interval.


Example

VBA

 'Declare a new WeibullDataSet object.  
  Dim WDS As New WeibullDataSet
 
 'Add interval suspensions to the data set.  
  Call WDS.AddSuspensionInterval(1, 5, 1)
  Call WDS.AddSuspensionInterval(6, 10, 1)
  Call WDS.AddSuspensionInterval(11, 15, 1)
VB.NET

 'Declare a new WeibullDataSet object.  
  Dim WDS As New WeibullDataSet
 
 'Add interval suspensions to the data set.  
  WDS.AddSuspensionInterval(1, 5, 1)
  WDS.AddSuspensionInterval(6, 10, 1)
  WDS.AddSuspensionInterval(11, 15, 1)