WAPlots.AddDataset

From ReliaWiki
Revision as of 22:52, 19 April 2016 by Kate Racaza (talk | contribs)
Jump to navigation Jump to search
APIWiki.png


Member of: SynthesisAPI.WAPlots


Adds the WeibullDataSet or ALTADataSet object to the plot.

Syntax

.AddDataSet(DataSet)

Parameters

DataSet

Required. The WeibullDataSet or ALTADataSet object that the plot will be based on.

Example

VBA

 'Declare a new WAPlots object. 
  Dim WeibullALTAPlot As New WAPlots
 
 'Declare a WeibullDataSet object. 
  Dim WDS As New WeibullDataSet
 
 'Add failures to the data set. 
  Call WDS.AddFailure(1, 1)
  Call WDS.AddFailure(2, 1)
  Call WDS.AddFailure(3, 1)
 
 'Add the data set to the plot. 
  WeibullALTAPlot.AddDataset(WDS)
VB.NET

 'Declare a new WAPlots object. 
  Dim WeibullALTAPlot As New WAPlots
 
 'Declare a WeibullDataSet object. 
  Dim WDS As New WeibullDataSet
 
 'Add failures to the data set. 
  WDS.AddFailure(1, 1)
  WDS.AddFailure(2, 1)
  WDS.AddFailure(3, 1)
 
 'Add the data set to the plot. 
  WeibullALTAPlot.AddDataset(WDS)