ALTADataSet Class Example: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
(Redirected page to ALTADataSet Class)
Line 1: Line 1:
This examples only uses constructors, methods, and properties found in [[ALTADataSet Class|WeibullDataSet]].
#REDIRECT [[ALTADataSet Class]]
 
{{APIComment|Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}}
        Dim ALTADS as New ALTADataSet
 
{{APIComment|Declare an [[ALTAStressProfile Class|ALTAStressProfile]]. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
        Dim sp = New ALTAStressProfile("Profile1")
        sp.RepeatCycle = True
        sp.AddSegment(1, 250)
        sp.AddSegment(2, 300)
        sp.AddSegment(3, 400)
 
{{APIComment|Add failure values to the raw data. See [[ALTADataSet.AddFailure|AddFailure]] for additional details.}}
        ALTADS.AddFailure(1, 1, sp)
        ALTADS.AddFailure(2, 1, sp)
        ALTADS.AddFailure(3, 1, sp)
 
{{APIComment|Add suspension values to the raw data.See [[ALTADataSet.AddSuspension|AddSuspension]] for additional details.}}
        ALTADS.AddSuspension(1, 1, sp)
        ALTADS.AddSuspension(2, 1, sp)
        ALTADS.AddSuspension(3, 1, sp)
 
{{APIComment|Get the number of failures. In this example, NumberOfFailures will be 3. See [[ALTADataSet.FailureCount|FailureCount]] for additional details.}}
        Dim NumberOfFailures as Integer
        NumberOfFailures = ALTADataSet.FailureCount
 
{{APIComment|Get the number of suspensions. In this example, NumberOfSuspension will be 3. See[[ALTADataSet.SuspensionCount|SuspensionCount]] for additional details.}}
        Dim NumberOfSuspension as Integer
        NumberOfSuspension = ALTADS.SuspensionCount
{{APIComment|Calculate the ALTADataSet. See [[ALTADataSet.Calculate|Calculate]] for additional details.}}
        ALTADS.Calculate
 
{{APIComment|Use ClearDataSet to clear data and fitted model. See [[ALTADataSet.ClearDataSet|ClearDataSet]] for additional details.}}}}
        '''ALTADS.ClearDataSet'''
 
{{APIComment|Get the number of failures. In this example, NumberOfFailures will be 0. See [[ALTADataSet.FailureCount|FailureCount]] for additional details.}}}}
        Dim NumberOfFailures as Integer
        NumberOfFailures = ALTADS.FailureCount

Revision as of 20:48, 4 May 2016

Redirect to: