WeibullDataSet.AddFailure: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Template:APIClass|WeibullDataSet Class|WeibullDataSet}}
{{Template:API}}{{Template:APIBreadcrumb|.[[WeibullDataSet Class|WeibullDataSet]]}}
{{Template:WeibullDataSet.AddFailure.Cmt}}
 
 
<onlyinclude>Adds a failure time to the data set.</onlyinclude>
 
== Syntax  ==
== Syntax  ==
'''.AddFailure'''(''Value'', ''NumberInGroup'')


*AddFailure(Value{{APIPrefix|As Double}}, NumberInGroup{{APIPrefix|As Integer}})
===Parameters===
Parameters
''Value''
:Required. Double. The exact time of failure.


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


== Usage Example  ==


  {{APIComment|Declare a new WeibullDataSet object. See [[WeibullDataSet Class|WeibullDataSet]].}}  
== Example ==
  Dim WDS as New WeibullDataSet
'''VBA|VB.NET'''
  {{APIComment|'Declare a new WeibullDataSet object.}}  
  {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet
    
    
  {{APIComment|Add the failure times 1, 2 and 3 to the data set.}}  
  {{APIComment|'Add the failure times 10, 20 and 30 to the data set.}}  
  WDS.AddFailure(1, 1)
  WDS.AddFailure(10, 1)
  WDS.AddFailure(2, 1)
  WDS.AddFailure(20, 1)
  WDS.AddFailure(3, 1)
  WDS.AddFailure(30, 1)

Revision as of 21:27, 30 March 2016

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. Integer. The number of failed units at the time of failure.


Example

VBA|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)