WeibullDataSet.AddFailure: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
m (Protected "WeibullDataSet.AddFailure" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Template:APIClass|WeibullDataSet Class|WeibullDataSet}}
{{Template:API}}{{Template:APIBreadcrumb|.[[WeibullDataSet Class|WeibullDataSet]]}}


Inserts a failure point


== Method Syntax ==
<onlyinclude>Adds a failure time to the data set.</onlyinclude>
{{APIName|'''AddFailure'''(}}
{{APIPrefix|ByVal}}
{{APIName|Value}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|NumberInGroup}}
{{APIPrefix|As Integer}}
{{APIName|)}}<br>
{{APIComment|Inserts a failure point to the WeibullDataSet.}}


== Parameters ==
== Syntax  ==
'''Value'''
'''.AddFailure'''(''Value'', ''NumberInGroup'')
The failure point in time.


'''NumberInGroup'''
===Parameters===
The number of units that failed at the '''Value''' time.
''Value''
:Required. Double. The exact time of failure.  


{{APIComment|Adds a failure data point to the collection of data points in the data set.}}
''NumberInGroup''
:Required. Double. The number of failed units at the time of failure.


== Usage Example ==
== Example ==
'''VBA'''
{{APIComment|'Declare a new WeibullDataSet object.}}
  {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet
 
{{APIComment|'Add the failure times 10, 20 and 30 to the data set.}}
  {{APIPrefix|Call}} WDS.AddFailure(10, 1)
  {{APIPrefix|Call}} WDS.AddFailure(20, 1)
  {{APIPrefix|Call}} WDS.AddFailure(30, 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.AddFailure(1, 1)
 
        WDS.AddFailure(2, 1)
{{APIComment|'Add the failure times 10, 20 and 30 to the data set.}}  
        WDS.AddFailure(3, 1)
  WDS.AddFailure(10, 1)
  WDS.AddFailure(20, 1)
  WDS.AddFailure(30, 1)

Latest revision as of 17:59, 16 January 2018

APIWiki.png


Member of: SynthesisAPI.WeibullDataSet


Adds a failure time to the data set.

Syntax

.AddFailure(Value, NumberInGroup)

Parameters

Value

Required. Double. The exact time of failure.

NumberInGroup

Required. Double. The number of failed units at the time of failure.

Example

VBA

 'Declare a new WeibullDataSet object.  
  Dim WDS As New WeibullDataSet
 
 'Add the failure times 10, 20 and 30 to the data set.  
  Call WDS.AddFailure(10, 1)
  Call WDS.AddFailure(20, 1)
  Call WDS.AddFailure(30, 1)
VB.NET

 'Declare a new WeibullDataSet object.  
  Dim WDS As New WeibullDataSet
 
 'Add the failure times 10, 20 and 30 to the data set.  
  WDS.AddFailure(10, 1)
  WDS.AddFailure(20, 1)
  WDS.AddFailure(30, 1)