WAPlots.AddDataset

From ReliaWiki
Revision as of 00:56, 7 September 2016 by Kate Racaza (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
APIWiki.png


Member of: SynthesisAPI.WAPlots


Adds a WeibullDataSet or ALTADataSet object to the plot.


Remarks: Before adding the WeibullDataSet object to the plot, it must first be analyzed by using the WeibullDataSet.Calculate method; otherwise, the plot cannot be generated. Similarly, the ALTADataSet object must first be analyzed using the ALTADataSet.Calculate method.

Syntax

.AddDataSet(DataSet)

Parameters

DataSet

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

Example

VBA

 '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)

 'Analyze the data set.   
  Call WDS.Calculate

 'Declare a new WAPlots object. 
  Dim WeibullALTAPlot As New WAPlots

 'Add the data set to the plot. 
  WeibullALTAPlot.AddDataset(WDS)
VB.NET

 '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)
  
 'Analyze the data set.   
  WDS.Calculate

 'Declare a new WAPlots object. 
  Dim WeibullALTAPlot As New WAPlots

 'Add the data set to the plot. 
  WeibullALTAPlot.AddDataset(WDS)