WAPlots.AddDataset: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
{{Template:WAPlots.AddDataSet.Cmt}}
{{Template:WAPlots.AddDataSet.Cmt}}


== Weibull Method Syntax ==
== Syntax ==
{{APIName|AddDataSet(}}
AddDataSet( {{APIName|DataSet}} {{APIPrefix|As}} WADataSet )
{{APIPrefix|ByVal}}
{{APIName|DataSet}}
{{APIPrefix|As}}
{{APIName|[[WeibullDataSet Class|WeibullDataSet]] )}}


{{APIComment|Adds Weibull data set for subsequent plotting.}}
Parameters
 
:''DataSet'': The name of the WeibullDataSet or ALTADataSet object that the plot will be based on.
== ALTA Method Syntax ==
{{APIName|AddDataSet(}}
{{APIPrefix|ByVal}}
{{APIName|DataSet}}
{{APIPrefix|As}}
{{APIName|[[ALTADataSet Class|ALTADataSet]] )}}
 
{{APIComment|Adds ALTA data set for subsequent plotting.}}
 
== Parameters ==
'''DataSet'''
The variable name of the WeibullDataSet or ALTADataSet object to add to the collection.


== Usage Example ==
== Usage Example ==

Revision as of 20:46, 3 March 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 Weibull/ALTA Plot instance.

       Dim WeibullALTAPlot As New WAPlots

Declare a WeibullDataSet. See New WeibullDataSet for additional details.

       Dim WDS as New WeibullDataSet

Add values to the raw data. See AddFailure for additional details.

       WDS.AddFailure(1, 1)
       WDS.AddFailure(2, 1)
       WDS.AddFailure(3, 1)

Add the WeibullDataSet to the WAPlots.

       WeibullALTAPlot.AddDataset(WDS)