WAPlots.AddDataset: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) No edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
<onlyinclude>Adds a [[WeibullDataSet Class|WeibullDataSet]] or [[ALTADataSet Class|ALTADataSet]] object to the plot.</onlyinclude> | <onlyinclude>Adds a [[WeibullDataSet Class|WeibullDataSet]] or [[ALTADataSet Class|ALTADataSet]] object to the plot.</onlyinclude> | ||
Before adding the <code>WeibullDataSet</code> object to the plot, it must first be analyzed by using the [[WeibullDataSet.Calculate]] method. Similarly, the <code>ALTADataSet</code> object must first be analyzed using the [[ALTADataSet.Calculate]] method. | |||
== Syntax == | == Syntax == | ||
Line 9: | Line 11: | ||
===Parameters=== | ===Parameters=== | ||
''DataSet'' | ''DataSet'' | ||
:Required. The [[WeibullDataSet Class|WeibullDataSet]] or [[ALTADataSet Class|ALTADataSet]] object that the plot will be based on. | :Required. The [[WeibullDataSet Class|WeibullDataSet]] or [[ALTADataSet Class|ALTADataSet]] object that the plot will be based on. | ||
== Example == | == Example == |
Revision as of 15:22, 6 July 2016
Member of: SynthesisAPI.WAPlots
Adds a WeibullDataSet or ALTADataSet object to the plot.
Before adding the WeibullDataSet
object to the plot, it must first be analyzed by using the WeibullDataSet.Calculate method. 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)