WeibullDataSet.AddFreeForm: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
m (Protected "WeibullDataSet.AddFreeForm" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
mNo edit summary
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Template:APIClass|WeibullDataSet Class|WeibullDataSet}}
{{Template:API}}{{Template:APIBreadcrumb|.[[WeibullDataSet Class|WeibullDataSet]]}}


Inserts a free-form data point


== Method Syntax ==
<onlyinclude>Adds a free-form data point to the data set.</onlyinclude>
{{APIName|'''AddFreeForm'''(}}
{{APIPrefix|ByVal}}
{{APIName|Time}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|Percent}}
{{APIPrefix|As Double}}
{{APIName|)}}<br>
{{APIComment|Inserts a free-form (probit) data point to the WeibullDataSet.}}


== Parameters ==
== Syntax  ==
'''Time'''
'''.AddFreeForm'''(''Time'', ''Percent'')
The X-Axis value (independent variable), denoted by '''Time''' for this method.


'''Percent'''
===Parameters===
The cumulative percent of failures for the Y-Axis value, denoted by '''Percent''' for this method.
''Time''
:Required. Double. The X-axis value (independent variable).


{{APIComment|Adds an Free-Form (probit) data point to the collection of data points in the data set.}}
''Percent''
:Required. Double. The cumulative percentage of failures for the Y-axis value (e.g., 90 = 90%).  


== Usage Example ==


{{APIComment|Declare the WeibullDataSet. See [[New WeibullDataSet]] for additional details.}}
== Example ==
        Dim WDS as New WeibullDataSet
'''VBA'''
{{APIComment|'Declare a new WeibullDataSet object.}}
  {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet
 
{{APIComment|'Add free-form data to the data set.}}  
  {{APIPrefix|Call}} WDS.AddFreeForm(100, 10)
  {{APIPrefix|Call}} WDS.AddFreeForm(200, 20)
  {{APIPrefix|Call}} WDS.AddFreeForm(300, 30)


{{APIComment|Add values to the raw data.}}
'''VB.NET'''
        WDS.AddFreeForm(100, 10) 'At 100hr, the probability of failure is 10%
        WDS.AddFreeForm(200, 20) 'At 200hr, the probability of failure is 20%
{{APIComment|'Declare a new WeibullDataSet object.}}
        WDS.AddFreeForm(300, 30) 'At 300hr, the probability of failure is 30%
  {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet
 
{{APIComment|'Add free-form data to the data set.}}  
  WDS.AddFreeForm(100, 10)  
  WDS.AddFreeForm(200, 20)  
  WDS.AddFreeForm(300, 30)

Latest revision as of 19:06, 24 June 2016

APIWiki.png


Member of: SynthesisAPI.WeibullDataSet


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

Syntax

.AddFreeForm(Time, Percent)

Parameters

Time

Required. Double. The X-axis value (independent variable).

Percent

Required. Double. The cumulative percentage of failures for the Y-axis value (e.g., 90 = 90%).


Example

VBA

 'Declare a new WeibullDataSet object.  
  Dim WDS As New WeibullDataSet
 
 'Add free-form data to the data set.  
  Call WDS.AddFreeForm(100, 10) 
  Call WDS.AddFreeForm(200, 20) 
  Call WDS.AddFreeForm(300, 30)
VB.NET

 'Declare a new WeibullDataSet object.  
  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)