ALTADataSet Class Example: Difference between revisions
Chris Kahn (talk | contribs) (Created page with 'This examples only uses constructors, methods, and properties found in WeibullDataSet. {{APIComment|Declare the ALTADataSet. See New ALTADataSet for…') |
Chris Kahn (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
This examples only uses constructors, methods, and properties found in [[ | This examples only uses constructors, methods, and properties found in [[ALTADataSet Class|WeibullDataSet]]. | ||
{{APIComment|Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}} | {{APIComment|Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}} |
Revision as of 16:26, 11 February 2014
This examples only uses constructors, methods, and properties found in WeibullDataSet.
Declare the ALTADataSet. See New ALTADataSet for additional details.
Dim ALTADS as New ALTADataSet
Declare an ALTAStressProfile. See ALTAStressProfile for additional details.
Dim sp = New ALTAStressProfile("Profile1") sp.RepeatCycle = True sp.AddSegment(1, 250) sp.AddSegment(2, 300) sp.AddSegment(3, 400)
Add failure values to the raw data. See AddFailure for additional details.
ALTADS.AddFailure(1, 1, sp) ALTADS.AddFailure(2, 1, sp) ALTADS.AddFailure(3, 1, sp)
Add suspension values to the raw data.See AddSuspension for additional details.
ALTADS.AddSuspension(1, 1, sp) ALTADS.AddSuspension(2, 1, sp) ALTADS.AddSuspension(3, 1, sp)
Get the number of failures. In this example, NumberOfFailures will be 3. See FailureCount for additional details.
Dim NumberOfFailures as Integer NumberOfFailures = ALTADataSet.FailureCount
Get the number of suspensions. In this example, NumberOfSuspension will be 3. SeeSuspensionCount for additional details.
Dim NumberOfSuspension as Integer NumberOfSuspension = ALTADS.SuspensionCount
Calculate the ALTADataSet. See Calculate for additional details.
ALTADS.Calculate
Use ClearDataSet to clear data and fitted model. See ClearDataSet for additional details. }}
ALTADS.ClearDataSet
Get the number of failures. In this example, NumberOfFailures will be 0. See FailureCount for additional details. }}
Dim NumberOfFailures as Integer NumberOfFailures = ALTADS.FailureCount