WeibullDataSet Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 55: Line 55:
         WDS.Calculate
         WDS.Calculate


{{APIComment|Get the number of failures. In this example, NumberOfFailures will be 3.}}
{{APIComment|Get the number of failures. In this example, NumberOfFailures will be 3. See [[WeibullDataSet.FailureCount|FailureCount]] for additional details.}}
         Dim NumberOfFailures as Integer
         Dim NumberOfFailures as Integer
         NumberOfFailures = WDS.FailureCount
         NumberOfFailures = WDS.FailureCount


{{APIComment|Calculate the Fitted Model using the raw data.}}
{{APIComment|Calculate the Fitted Model using the raw data. See [[WeibullDataSet.CalculateBestFit|CalculateBestFit]] for additional details.}}
         WDS.CalculateBestFit
         WDS.CalculateBestFit


{{APIComment|Use the Fitted Model using the raw data.}}
{{APIComment|Use the Fitted Model using the raw data. See [[WeibullDataSet.FittedModel|FittedModel]] for additional details.}}
         Dim WDSFittedModel as cModel
         Dim WDSFittedModel as cModel
         WDSFittedModel = WDS.FittedModel
         WDSFittedModel = WDS.FittedModel


{{APIComment|Use ClearDataSet to clear data and fitted model.}}
{{APIComment|Use ClearDataSet to clear data and fitted model. See [[WeibullDataSet.ClearDataSet|ClearDataSet]] for additional details.}}
         '''WDS.ClearDataSet'''
         '''WDS.ClearDataSet'''


{{APIComment|Get the number of failures. In this example, NumberOfFailures will be 0.}}
{{APIComment|Get the number of failures. In this example, NumberOfFailures will be 0. See [[WeibullDataSet.FailureCount|FailureCount]] for additional details.}}
         Dim NumberOfFailures as Integer
         Dim NumberOfFailures as Integer
         NumberOfFailures = WDS.FailureCount
         NumberOfFailures = WDS.FailureCount

Revision as of 17:00, 6 February 2014


Provides the functionality of a Weibull++ standard folio, including entering data in a data set, specifying analysis settings and fitting a distribution to the data set.

Constructors

This section contains information on how to create a new Weibull++ folio.

  • New WeibullDataSet Creates a new class that can be used to fit a model from Weibull raw data.

Methods

This section contains the methods that a user might use to manipulate their Weibull++ data set. A user may use these methods to add failures, suspensions, failure intervals, suspension intervals, free forms, calculate the data set, or clear the data set. This section should be configured after the data set has been created.

  • AddFailure Adds failure times to the data set, using the specified time and number of failures at that time.
  • AddFailureInterval Adds interval censored failures to the data set, using the specified start/end times and number of failures that occurred within the interval.
  • AddFreeForm Adds a free-form data point to the data set, using the specified time and percentage values.
  • AddSuspension Adds suspensions to the data set, using the specified time and number of suspensions at that time.
  • AddSuspensionInterval Adds interval censored suspensions to the data set, using the specified start/end times and number of suspensions for that interval.
  • Calculate Fits the distribution to the current data set using the settings specified in the AnalysisSettings property.
  • CalculateBestFit Automatically finds the best fitting distribution and fits that distribution to the current data set using the settings specified in the BestFitSettings property.
  • ClearDataSet Clears all data in the data set and removes the fitted model, if any.

Properties

This section contains properties that a user may use to analyse the data set. The user may choose to have a data set name, have a count of failures, and more.

  • AnalysisResults Gets the correlation coefficient, likelihood value and percent non-zero values that were estimated from the analysis, if applicable.
  • AnalysisSettings Sets the control panel settings for use with the Calculate method.
  • BestFitSettings Sets the Distribution Wizard and control panel settings for use with the CalculateBestFit method.
  • DatasetName Gets or sets the name of the data set, which will be displayed on any plot you create.
  • FailureCount Gets the total number of failures in the data set.
  • FittedModel Gets the fitted model from the life data analysis. This property is cleared if the analysis could not be completed.
  • GeneralSettings Sets some of the Application Setup calculation options that can apply to both the Calculate and CalculateBestFit methods.
  • SuspensionCount Gets the total number of suspensions in the data set.

Events

This section allows the user to display events.

  • Events all the event handlers that can be called by WeibullDataSet. To use events, you must inherit the class, override its methods and assign its instance to the Events property of a WeibullDataSet. WeibullEvents inheritance is not available in VB6/VBA.

Formatted Usage Example

This examples only uses constructors, methods, and properties found in WeibullDataSet.


Declare the WeibullDataSet. See New WeibullDataSet for additional details.

       Dim WDS as New WeibullDataSet

Add values to the raw data. See AddFailure for additional details.

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

Add values to the raw data. See AddSuspension for additional details.

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

Calculate the WeibullDataSet. See Calculate for additional details.

       WDS.Calculate

Get the number of failures. In this example, NumberOfFailures will be 3. See FailureCount for additional details.

       Dim NumberOfFailures as Integer
       NumberOfFailures = WDS.FailureCount

Calculate the Fitted Model using the raw data. See CalculateBestFit for additional details.

       WDS.CalculateBestFit

Use the Fitted Model using the raw data. See FittedModel for additional details.

       Dim WDSFittedModel as cModel
       WDSFittedModel = WDS.FittedModel

Use ClearDataSet to clear data and fitted model. See ClearDataSet for additional details.

       WDS.ClearDataSet

Get the number of failures. In this example, NumberOfFailures will be 0. See FailureCount for additional details.

       Dim NumberOfFailures as Integer
       NumberOfFailures = WDS.FailureCount