WeibullDataSet.AddFreeForm: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Template:APIClass|WeibullDataSet Class|WeibullDataSet}}
{{Template:APIClass|WeibullDataSet Class|WeibullDataSet}}
{{Template:WeibullDataSet.AddFreeForm.Cmt}}
Adds a free-form data point to the data set.  


== Syntax ==
== Syntax ==
<div style="margin-right: 150px;">
*AddFreeForm( Time{{APIPrefix|As Double}}, Percent{{APIPrefix|As Double}}) {{APIComment|{{Template:WeibullDataSet.AddFreeForm.Cmt}}}}
{{APIComment|'Declaration}}
{{APIPrefix|Public Sub}}AddFreeForm({{APIPrefix|ByVal}}Time{{APIPrefix|As Double}},{{APIPrefix|ByVal}}Percent{{APIPrefix|As Double}})
</div>
 
Parameters
Parameters
:''Time'': The x-axis value (independent variable).
:''Time'': The x-axis value (independent variable).

Revision as of 17:44, 20 February 2014


Adds a free-form data point to the data set.

Syntax

  • AddFreeForm( TimeAs Double, PercentAs Double) Adds a free-form data point to the data set, using the specified time and percentage values.

Parameters

Time: The x-axis value (independent variable).
Percent: The cumulative percentage of failures for the y-axis value (e.g., '90' = 90%).

Usage Example

Declare the WeibullDataSet. See New WeibullDataSet for additional details.

       Dim WDS as New WeibullDataSet

Add values to the raw data.

       WDS.AddFreeForm(100, 10) 'At 100hr, the probability of failure is 10%
       WDS.AddFreeForm(200, 20) 'At 200hr, the probability of failure is 20%
       WDS.AddFreeForm(300, 30) 'At 300hr, the probability of failure is 30%