WeibullDataSet.ClearDataSet: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template:APIClass|WeibullDataSet Class|WeibullDataSet}} | {{Template:APIClass|WeibullDataSet Class|WeibullDataSet}} | ||
{{Template:WeibullDataSet.ClearDataSet.Cmt}} | {{Template:WeibullDataSet.ClearDataSet.Cmt}} All analysis settings remain unchanged. | ||
== Method Syntax == | == Method Syntax == | ||
{{Template:WeibullDataSet.ClearDataSet}} | {{Template:WeibullDataSet.ClearDataSet}} | ||
== Usage Example == | == Usage Example == |
Revision as of 18:04, 10 February 2014
Clears all data in the data set and removes the fitted model, if any. All analysis settings remain unchanged.
Method Syntax
ClearDataSet()
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 = WDS.FailureCount