WeibullDataSet.AddFreeForm: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 10: Line 10:
== Usage Example ==
== Usage Example ==


{{APIComment|Declare the WeibullDataSet. See [[New WeibullDataSet]] for additional details.}}
{{APIComment|'Declare the WeibullDataSet. See [[WeibullDataSet Class|WeibullDataSet]].}}
        Dim WDS as New WeibullDataSet
  Dim WDS as New WeibullDataSet
 
 
{{APIComment|Add values to the raw data.}}
{{APIComment|'Add free form data to the data set.}}
        WDS.AddFreeForm(100, 10) 'At 100hr, the probability of failure is 10%
  WDS.AddFreeForm(100, 10)  
        WDS.AddFreeForm(200, 20) 'At 200hr, the probability of failure is 20%
  WDS.AddFreeForm(200, 20)  
        WDS.AddFreeForm(300, 30) 'At 300hr, the probability of failure is 30%
  WDS.AddFreeForm(300, 30)

Revision as of 18:45, 6 May 2014


Adds a free-form data point to the data set, using the specified time and percentage values.

Syntax

  • AddFreeForm( TimeAs Double, PercentAs Double)

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 WeibullDataSet. 
  Dim WDS as New WeibullDataSet
 
 'Add free form data to the data set. 
 WDS.AddFreeForm(100, 10) 
 WDS.AddFreeForm(200, 20) 
 WDS.AddFreeForm(300, 30)