Talk:Perform Life Data Analysis on External Data Source/Notes

=DRAFT=

With the Synthesis API, you can leverage the Weibull++ analysis engine to perform life data analysis on an external data source. In this tutorial, you will use the API to create and analyze a data set, and then obtain analysis results from the resulting model.

Note that this tutorial is for demonstration purposes only; it doesn't take efficiency into account and doesn't include any exception handling.

Tutorial: Life Data Analysis
This example demonstrates how to use the Synthesis API to analyze the following data set and obtain an estimate of the probability of failure. A discussion of the example follows.

VB.NET SynthesisAPI Module1 Main WDS WeibullDataSet WDS.AddFailure(16, 1) WDS.AddFailure(34, 1) WDS.AddFailure(53, 1) WDS.AddFailure(75, 1) WDS.AddFailure(93, 1) WDS.AddSuspension(120, 5) WDS.AnalysisSettings.Distribution = WeibullSolverDistribution.Weibull WDS.AnalysisSettings.Parameters = WeibullSolverNumParameters.MS_2Parameter WDS.AnalysisSettings.Analysis = WeibullSolverMethod.RRX WDS.Calculate r Double r = WDS.FittedModel.unreliability(226) MsgBox( & r)

Discussion
The WeibullDataSet class represents a Weibull++ standard folio data sheet. The class contains all the methods and properties that allow you to define a data set and fit a statistical distribution to the data.

WDS WeibullDataSet

The data set can contain failures, suspensions, interval data or free-form data. The following example shows how to use the AddFailure method to define failures and the AddSuspension method to define suspensions.

WDS.AddFailure(16, 1) WDS.AddFailure(34, 1) WDS.AddFailure(53, 1) WDS.AddFailure(75, 1) WDS.AddFailure(93, 1) WDS.AddSuspension(120, 5)

The  property stores a reference to the WeibullAnalysisOptions object, which represents the analysis settings of the data set (i.e., settings that you might find in a Weibull++ folio's control panel). In this example, we use the property to change some of the attributes of the object.

WDS.AnalysisSettings.Distribution = WeibullSolverDistribution.Weibull WDS.AnalysisSettings.Parameters = WeibullSolverNumParameters.MS_2Parameter WDS.AnalysisSettings.Analysis = WeibullSolverMethod.RRX

Use the Calculate method to analyze the data set. The method returns a message box that shows the estimated parameters of the life distribution, based on the settings specified in the  property.

WDS.Calculate

The  property gets a cModel object that represents the fitted model of the life data analysis. From the model, you can calculate useful metrics such as reliability, failure rate, mean time, etc. In this example, we use the cModel.Unreliability method to calculate for the probability of failure.

r Double r = WDS.FittedModel.unreliability(226) MsgBox( & r)