WAPlots Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 15: Line 15:
*ErrorMessage (as ''string'') {{APIComment|The error that happened during the creation of the plot. Set only if ErrorHappened is true.}}
*ErrorMessage (as ''string'') {{APIComment|The error that happened during the creation of the plot. Set only if ErrorHappened is true.}}


== Formatted Usage Example ==
== Usage Example ==
{{APIComment|Create a new Weibull/ALTA Plot instance. See [[WAPlots.CreatePlot|CreatePlot]] for additional details.}}  
{{APIComment|Create a new Weibull/ALTA Plot instance. See [[WAPlots.CreatePlot|CreatePlot]] for additional details.}}  
         Dim WeibullALTAPlot As New WAPlots
         Dim WeibullALTAPlot As New WAPlots

Revision as of 22:21, 3 March 2014


Creates a plot based on a fitted model in a WeibullDataSet or ALTADataSet object.

Constructors

  • WAPlots Creates a new WAPlots object.

Methods

Properties

  • ErrorHappened (as boolean) Whether an error happened during the creation of the plot.
  • ErrorMessage (as string) The error that happened during the creation of the plot. Set only if ErrorHappened is true.

Usage Example

Create a new Weibull/ALTA Plot instance. See CreatePlot for additional details.

       Dim WeibullALTAPlot As New WAPlots

Declare a 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 the WeibullDataSet to the WAPlots. See New WeibulDataSet for additional details.

       WeibullALTAPlot.AddDataset(WDS)

Create the WAPlot. In this example, it will create a Probability plot. See WAPlotType for additional details.

       Dim FinalPlot As Bitmap = WeibullALTAPlot.CreatePlot(WAPlotType.Probability)

If there were any issues creating the plot, ErrorHappened would be True, and ErrorString will display the reason.

       Dim ErrorString as String
       If WeibullALTAPlot.ErrorHappened Then
           ErrorString = WeibullALTAPlot.ErrorMessage
       End If