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:APIClass|WeibullDataSet Class|WeibullDataSet}} {{Template:WeibullDataSet.AddFailure.Cmt}}  
{{Template:WeibullDataSet.AddFailure.Cmt}}


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


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


== Usage Example ==
== Usage Example ==
 
{{APIComment|Declare the WeibullDataSet. See [[New WeibullDataSet]] for additional details.}}


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


{{APIComment|Add values to the raw data.}}
{{APIComment|Add values to the raw data.}}  
 
         WDS.AddFailure(1, 1)
         WDS.AddFailure(1, 1)
        WDS.AddFailure(2, 1)
      WDS.AddFailure(2, 1)
        WDS.AddFailure(3, 1)
      WDS.AddFailure(3, 1)

Revision as of 23:26, 19 February 2014


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

Syntax

 'Declaration 
Public SubAddFailure(ByValValueAs Double,ByValNumberInGroupAs 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)