CModel Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 36: Line 36:
*[[CModel.ItemKeywords|ItemKeywords(String)]] {{APIComment|{{Template:ItemKeywords.Cmt}}}}
*[[CModel.ItemKeywords|ItemKeywords(String)]] {{APIComment|{{Template:ItemKeywords.Cmt}}}}


'''ALTA Calculations'''  
'''Stress (ALTA Models Only)'''  


*NumStresses (as ''integer'') {{APIComment|Gets the number of stresses in the model.}}  
*NumStresses (as ''integer'') {{APIComment|Gets the number of stresses in the model.}}  

Revision as of 19:37, 28 April 2015



The model class allows you to represent probabilities, durations or costs, either fixed or time-dependent. It also contains methods for accessing the calculations performed with the Quick Calculation Pad (QCP).

To access/edit repository level information, including accessing/adding resources, please see Repository Class.

Constructors

Methods and Properties

Model

Item

Stress (ALTA Models Only)

Standard Calculations

Confidence Bound Calculations

Usage Example

 'Declare a new WeibullDataSet object. See WeibullDataSet. 
Dim WDS as New WeibullDataSet

 'Add failure times to the data set. See AddFailure. 
WDS.AddFailure(10, 1)
WDS.AddFailure(20, 1)
WDS.AddFailure(30, 1)

 'Calculate the fitted model using default settings. See Calculate.  
WDS.Calculate()

 'Assign the fitted model to a variable. 
Dim WDSFittedModel as cModel
WDSFittedModel = WDS.FittedModel

 'Calculate the reliability at time = 50 and save the result. See Reliability. 
Dim Rel as Double
Rel = WDSFittedModel.Reliability(50)

Notes