WAPlots Class

From ReliaWiki
Jump to navigation Jump to search


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.  
 Dim WeibullALTAPlot As New WAPlots
 
 'Declare a WeibullDataSet. See WeibullDataSet. 
 Dim WDS As New WeibullDataSet
 
 'Add values to the raw data. See AddFailure. 
 WDS.AddFailure(1, 1)
 WDS.AddFailure(2, 1)
 WDS.AddFailure(3, 1)
 
 'Specify that the will be based on the WDS data set. 
 WeibullALTAPlot.AddDataset(WDS)

 'Create a Probability plot. See WAPlotType for plot types. 
 Dim FinalPlot As Bitmap = WeibullALTAPlot.CreatePlot(WAPlotType.Probability)