WeibullDataSet.AddFailure: Difference between revisions
Jump to navigation
Jump to search
Albert Szeto (talk | contribs) m (moved AddFailure to WeibullDataSet.AddFailure) |
Albert Szeto (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template:APIClass|WeibullDataSet Class|WeibullDataSet}} | {{Template:APIClass|WeibullDataSet Class|WeibullDataSet}} | ||
Inserts a failure point to the WeibullDataSet. | |||
== Declaration == | == Declaration == | ||
{{APIPrefix|Sub}} | {{APIPrefix|Sub}} | ||
Line 14: | Line 17: | ||
{{APIComment|Adds a failure data point to the collection of data points in the data set.}} | {{APIComment|Adds a failure data point to the collection of data points in the data set.}} | ||
== Usage Example == | |||
{{APIComment|Declare the WeibullDataSet. See [[New WeibullDataSet]] for additional details.}} | |||
Dim WDS as New WeibullDataSet | |||
{{APIComment|Add values to the raw data.}} | |||
WDS.AddFailure(1, 1) | |||
WDS.AddFailure(2, 1) | |||
WDS.AddFailure(3, 1) | |||
{{APIComment|Get the number of failures. In this example, NumberOfFailures will be 3.}} | |||
Dim NumberOfFailures as Integer | |||
NumberOfFailures = WeibullDataSet.FailureCount |
Revision as of 16:59, 11 September 2013
Inserts a failure point to the WeibullDataSet.
Declaration
Sub AddFailure( ByVal Value As Double , ByVal NumberInGroup As Integer )
Adds a failure data point to the collection of data points in the data set.
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)
Get the number of failures. In this example, NumberOfFailures will be 3.
Dim NumberOfFailures as Integer NumberOfFailures = WeibullDataSet.FailureCount