WAPlots.AddDataset: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 9: Line 9:


== Usage Example ==
== Usage Example ==
{{APIComment|Create a new Weibull/ALTA Plot instance.}}
{{APIComment|'Create a new WAPlots object.}}
        Dim WeibullALTAPlot As New WAPlots
  Dim WeibullALTAPlot As New WAPlots
 
 
{{APIComment|Declare a WeibullDataSet. See [[New WeibullDataSet]] for additional details.}}
{{APIComment|'Declare a WeibullDataSet. See [[WeibullDataSet Class|WeibullDataSet]].}}
        Dim WDS as New WeibullDataSet
  Dim WDS as New WeibullDataSet
 
 
{{APIComment|Add values to the raw data. See [[WeibullDataSet.AddFailure|AddFailure]] for additional details.}}
{{APIComment|'Add values to the data set. See [[WeibullDataSet.AddFailure|AddFailure]].}}
        WDS.AddFailure(1, 1)
  WDS.AddFailure(1, 1)
        WDS.AddFailure(2, 1)
  WDS.AddFailure(2, 1)
        WDS.AddFailure(3, 1)
  WDS.AddFailure(3, 1)
 
 
{{APIComment|Add the WeibullDataSet to the WAPlots.}}
{{APIComment|'Add the WeibullDataSet to the WAPlots.}}
        '''WeibullALTAPlot.AddDataset(WDS)'''
  WeibullALTAPlot.AddDataset(WDS)

Revision as of 22:45, 23 May 2014


Adds the specified WeibullDataSet or ALTADataSet object that the plot will be based on.

Syntax

  • AddDataSet( DataSet As WADataSet )

Parameters

DataSet: The name of the WeibullDataSet or ALTADataSet object that the plot will be based on.

Usage Example

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