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 2: | Line 2: | ||
<onlyinclude>Adds | <onlyinclude>Adds a [[WeibullDataSet Class|WeibullDataSet]] or [[ALTADataSet Class|ALTADataSet]] object to the plot.</onlyinclude> | ||
== Syntax == | == Syntax == | ||
Line 15: | Line 15: | ||
'''VBA''' | '''VBA''' | ||
{{APIComment|'Declare a WeibullDataSet object.}} | {{APIComment|'Declare a WeibullDataSet object.}} | ||
{{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet | {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet | ||
Line 25: | Line 22: | ||
{{APIPrefix|Call}} WDS.AddFailure(2, 1) | {{APIPrefix|Call}} WDS.AddFailure(2, 1) | ||
{{APIPrefix|Call}} WDS.AddFailure(3, 1) | {{APIPrefix|Call}} WDS.AddFailure(3, 1) | ||
{{APIComment|'Analyze the data set.}} | |||
{{APIPrefix|Call}} WDS.Calculate | |||
{{APIComment|'Declare a new WAPlots object.}} | |||
{{APIPrefix|Dim}} WeibullALTAPlot {{APIPrefix|As New}} WAPlots | |||
{{APIComment|'Add the data set to the plot.}} | {{APIComment|'Add the data set to the plot.}} | ||
WeibullALTAPlot.AddDataset(WDS) | WeibullALTAPlot.AddDataset(WDS) | ||
Line 31: | Line 34: | ||
'''VB.NET''' | '''VB.NET''' | ||
{{APIComment|'Declare a WeibullDataSet object.}} | {{APIComment|'Declare a WeibullDataSet object.}} | ||
{{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet | {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet | ||
Line 41: | Line 41: | ||
WDS.AddFailure(2, 1) | WDS.AddFailure(2, 1) | ||
WDS.AddFailure(3, 1) | WDS.AddFailure(3, 1) | ||
{{APIComment|'Analyze the data set.}} | |||
WDS.Calculate | |||
{{APIComment|'Declare a new WAPlots object.}} | |||
{{APIPrefix|Dim}} WeibullALTAPlot {{APIPrefix|As New}} WAPlots | |||
{{APIComment|'Add the data set to the plot.}} | {{APIComment|'Add the data set to the plot.}} | ||
WeibullALTAPlot.AddDataset(WDS) | WeibullALTAPlot.AddDataset(WDS) |
Revision as of 23:44, 23 June 2016
Member of: SynthesisAPI.WAPlots
Adds a 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 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)