|
|
Line 1: |
Line 1: |
| This example illustrates how to use some of the elements in the [[WeibullDataSet Class|WeibullDataSet]] class.
| | #REDIRECT [[API Tutorials]] |
| | |
| {{APIComment|Declare the WeibullDataSet. See [[New WeibullDataSet]] for additional details.}}
| |
| Dim WDS as New WeibullDataSet
| |
| | |
| {{APIComment|Add values to the raw data. See [[WeibullDataSet.AddFailure|AddFailure]] for additional details.}}
| |
| WDS.AddFailure(1, 1)
| |
| WDS.AddFailure(2, 1)
| |
| WDS.AddFailure(3, 1)
| |
| | |
| {{APIComment|Add values to the raw data. See [[WeibullDataSet.AddSuspension|AddSuspension]] for additional details.}}
| |
| WDS.AddSuspension(1, 1)
| |
| WDS.AddSuspension(2, 1)
| |
| WDS.AddSuspension(3, 1)
| |
| | |
| {{APIComment|Calculate the WeibullDataSet. See [[WeibullDataSet.Calculate|Calculate]] for additional details.}}
| |
| WDS.Calculate
| |
| | |
| {{APIComment|Get the number of failures. In this example, NumberOfFailures will be 3. See [[WeibullDataSet.FailureCount|FailureCount]] for additional details.}}
| |
| Dim NumberOfFailures as Integer
| |
| NumberOfFailures = WDS.FailureCount
| |
| | |
| {{APIComment|Calculate the Fitted Model using the raw data. See [[WeibullDataSet.CalculateBestFit|CalculateBestFit]] for additional details.}}
| |
| WDS.CalculateBestFit
| |
| | |
| {{APIComment|Use the Fitted Model using the raw data. See [[WeibullDataSet.FittedModel|FittedModel]] for additional details.}}
| |
| Dim WDSFittedModel as cModel
| |
| WDSFittedModel = WDS.FittedModel
| |
| | |
| {{APIComment|Use ClearDataSet to clear data and fitted model. See [[WeibullDataSet.ClearDataSet|ClearDataSet]] for additional details.}}
| |
| '''WDS.ClearDataSet'''
| |
| | |
| {{APIComment|Get the number of failures. In this example, NumberOfFailures will be 0. See [[WeibullDataSet.FailureCount|FailureCount]] for additional details.}}
| |
| Dim NumberOfFailures as Integer
| |
| NumberOfFailures = WDS.FailureCount
| |