WeibullDataSet.ClearDataSet: Difference between revisions
Jump to navigation
Jump to search
Albert Szeto (talk | contribs) m (moved ClearDataSet to WeibullDataSet.ClearDataSet) |
Albert Szeto (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template:APIClass|WeibullDataSet Class|WeibullDataSet}} | {{Template:APIClass|WeibullDataSet Class|WeibullDataSet}} | ||
== | |||
Provides a method to clear the raw data entered into the WeibullDataSet. | |||
== Method Syntax == | |||
{{APIPrefix|Public Sub}} | {{APIPrefix|Public Sub}} | ||
{{APIName|ClearDataSet()}} | {{APIName|ClearDataSet()}} | ||
{{APIComment|Clears all data and fitted model. All analysis settings stay unchanged.}} | {{APIComment|Clears all data and fitted model. All analysis settings stay unchanged.}} | ||
== Usage Example == | |||
{{APIComment|Declare the WeibullDataSet. See [[New WeibullDataSet]] for additional details.}} | |||
Dim WDS as New WeibullDataSet | |||
{{APIComment|Add values to the raw data. See [[WeibullDataSet.AddFailure]] for additional details.}} | |||
WDS.AddFailure(1, 1) | |||
WDS.AddFailure(2, 1) | |||
WDS.AddFailure(3, 1) | |||
{{APIComment|Calculate the Fitted Model using the raw data.}} | |||
WDS.CalculateBestFit | |||
{{APIComment|Use the Fitted Model using the raw data.}} | |||
Dim WDSFittedModel as cModel | |||
WDSFittedModel = WDS.FittedModel | |||
{{APIComment|Use ClearDataSet to clear data and fitted model.}} | |||
'''WDS.ClearDataSet''' | |||
{{APIComment|Get the number of failures. In this example, NumberOfFailures will be 0.}} | |||
Dim NumberOfFailures as Integer | |||
NumberOfFailures = WeibullDataSet.FailureCount |
Revision as of 16:50, 11 September 2013
Provides a method to clear the raw data entered into the WeibullDataSet.
Method Syntax
Public Sub ClearDataSet()
Clears all data and fitted model. All analysis settings stay unchanged.
Usage Example
Declare the WeibullDataSet. See New WeibullDataSet for additional details.
Dim WDS as New WeibullDataSet
Add values to the raw data. See WeibullDataSet.AddFailure for additional details.
WDS.AddFailure(1, 1) WDS.AddFailure(2, 1) WDS.AddFailure(3, 1)
Calculate the Fitted Model using the raw data.
WDS.CalculateBestFit
Use the Fitted Model using the raw data.
Dim WDSFittedModel as cModel WDSFittedModel = WDS.FittedModel
Use ClearDataSet to clear data and fitted model.
WDS.ClearDataSet
Get the number of failures. In this example, NumberOfFailures will be 0.
Dim NumberOfFailures as Integer NumberOfFailures = WeibullDataSet.FailureCount