WeibullDataSet.AddFailure: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:


== Syntax ==
== Syntax ==
*AddFailure( Value{{APIPrefix|As Double}}, NumberInGroup{{APIPrefix|As Integer}})
<div style="margin-right: 150px;">
  {{APIComment|'Declaration}}
  AddFailure({{APIPrefix|By Val}}Value{{APIPrefix|As Double}},{{APIPrefix|By Val}}NumberInGroup{{APIPrefix|As Integer}})
</div>


Parameters  
Parameters  

Revision as of 23:07, 19 February 2014


Adds failure times to the data set, using the specified time and number of failures at that time.

Syntax

  'Declaration 
  AddFailure(By ValValueAs Double,By ValNumberInGroupAs Integer)

Parameters

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

Usage Example

Declare the WeibullDataSet. See New WeibullDataSet for additional details.

       Dim WDS as New WeibullDataSet

Add values to the raw data.

       WDS.AddFailure(1, 1)
       WDS.AddFailure(2, 1)
       WDS.AddFailure(3, 1)