ALTADataSet Class Example

From ReliaWiki
Revision as of 15:45, 11 February 2014 by 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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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