WAPlots.AddDataset: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{Template:APIClass|WAPlots Class|WAPlots}}
{{Template:API}}{{Template:APIBreadcrumb|.[[WAPlots_Class|WAPlots]]}}
{{Template:WAPlots.AddDataSet.Cmt}}
 
 
<onlyinclude>Adds the [[WeibullDataSet Class|WeibullDataSet]] or [[ALTADataSet Class|ALTADataSet]] object to the plot.</onlyinclude>


== Syntax ==
== Syntax ==
*AddDataSet( {{APIName|DataSet}} {{APIPrefix|As}} WADataSet )
'''.AddDataSet'''(''DataSet'')
 
===Parameters===
''DataSet''
:Required. The [[WeibullDataSet Class|WeibullDataSet]] or [[ALTADataSet Class|ALTADataSet]] object that the plot will be based on.


Parameters
== Example ==
:''DataSet'': The name of the [[WeibullDataSet Class|WeibullDataSet]] or [[ALTADataSet Class|ALTADataSet]] object that the plot will be based on.
 
'''VBA'''
{{APIComment|'Declare a new WAPlots object.}}
  {{APIPrefix|Dim}} WeibullALTAPlot {{APIPrefix|As New}} WAPlots
 
{{APIComment|'Declare a WeibullDataSet object.}}
  {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet
 
{{APIComment|'Add failures to the data set.}}
  {{APIPrefix|Call}} WDS.AddFailure(1, 1)
  {{APIPrefix|Call}} WDS.AddFailure(2, 1)
  {{APIPrefix|Call}} WDS.AddFailure(3, 1)
 
{{APIComment|'Add the data set to the plot.}}
  WeibullALTAPlot.AddDataset(WDS)


== Usage Example ==
'''VB.NET'''
  {{APIComment|'Create a new WAPlots object.}}
  Dim WeibullALTAPlot As New WAPlots
  {{APIComment|'Declare a new WAPlots object.}}
  {{APIPrefix|Dim}} WeibullALTAPlot {{APIPrefix|As New}} WAPlots
    
    
  {{APIComment|'Declare a WeibullDataSet. See [[WeibullDataSet Class|WeibullDataSet]].}}
  {{APIComment|'Declare a WeibullDataSet object.}}
  Dim WDS as New WeibullDataSet
  {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet
    
    
  {{APIComment|'Add values to the data set. See [[WeibullDataSet.AddFailure|AddFailure]].}}
  {{APIComment|'Add failures to the data set.}}
  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 data set to the plot.}}
  WeibullALTAPlot.AddDataset(WDS)
  WeibullALTAPlot.AddDataset(WDS)

Revision as of 22:52, 19 April 2016

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)