CModel Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:
'''Model'''  
'''Model'''  


*Type (as ''[[ModelTypeEnum Enumeration|ModelTypeEnum]]'') {{APIComment|Gets the model type (e.g., 2-parameter Weibull).}}
*Category (as ''[[ModelCategoryEnum Enumeration|ModelCategoryEnum]]'') {{APIComment|Gets the model category (e.g., reliability).}}
*Designation (as ''string'') {{APIComment|Gets a string representing the model type (for example "2P-Weibull").}}
*UnitID (as ''integer'') {{APIComment|Gets or sets the unit ID.}} [[#Notes|*]]
*[[CModel.SetModel|SetModel( ModelTypeEnum, ModelCategoryEnum, Double() )]] {{APIComment|{{Template:CModel.SetModel.Cmt}}}}  
*[[CModel.SetModel|SetModel( ModelTypeEnum, ModelCategoryEnum, Double() )]] {{APIComment|{{Template:CModel.SetModel.Cmt}}}}  
*[[CModel.Parameters|Parameters]] {{APIComment|{{Template:CModel.Parameters.Cmt}}}}  
*[[CModel.Parameters|Parameters]] {{APIComment|{{Template:CModel.Parameters.Cmt}}}}  
Line 32: Line 36:
*[[CModel.ItemKeywords|ItemKeywords(String)]] {{APIComment|{{Template:ItemKeywords.Cmt}}}}
*[[CModel.ItemKeywords|ItemKeywords(String)]] {{APIComment|{{Template:ItemKeywords.Cmt}}}}


'''Use Stress for ALTA Calculations'''  
'''ALTA Calculations'''  


*NumStresses (as ''integer'') {{APIComment|Gets the number of stresses in the model.}}
*[[CModel.SetUseStress|SetUseStress( Integer, Double )]] {{APIComment|{{Template:CModel.SetUseStress1}}}}  
*[[CModel.SetUseStress|SetUseStress( Integer, Double )]] {{APIComment|{{Template:CModel.SetUseStress1}}}}  
*[[CModel.SetUseStress|SetUseStress( Double() )]] {{APIComment|{{Template:CModel.SetUseStress2}}}}
*[[CModel.SetUseStress|SetUseStress( Double() )]] {{APIComment|{{Template:CModel.SetUseStress2}}}}
Line 39: Line 44:
'''Standard Calculations'''  
'''Standard Calculations'''  


*ErrorHappened (as ''boolean'') {{APIComment|Whether or not the last calculation produced an error.}}
*[[CModel.Reliability|Reliability( Double, [Double], [Double] )]] {{APIComment|{{Template:CModel.Reliability.Cmt}}}}  
*[[CModel.Reliability|Reliability( Double, [Double], [Double] )]] {{APIComment|{{Template:CModel.Reliability.Cmt}}}}  
*[[CModel.Unreliability|Unreliability( Double, [Double], [Double] )]] {{APIComment|{{Template:CModel.Unreliability.Cmt}}}}  
*[[CModel.Unreliability|Unreliability( Double, [Double], [Double] )]] {{APIComment|{{Template:CModel.Unreliability.Cmt}}}}  
Line 48: Line 54:
'''Confidence Bound Calculations'''  
'''Confidence Bound Calculations'''  


*ConfLevel (as ''double'') {{APIComment|Gets the confidence level that is currently used for calculations.}}
*[[CModel.SetConfidenceLevel|SetConfidenceLevel( Double, ConfBoundsSides, Boolean, String )]] {{APIComment|{{CModel.SetConfidenceLevel.Cmt}}}}  
*[[CModel.SetConfidenceLevel|SetConfidenceLevel( Double, ConfBoundsSides, Boolean, String )]] {{APIComment|{{CModel.SetConfidenceLevel.Cmt}}}}  
*[[CModel.Bounds Reliability|Bounds_Reliability( Double, [Double], [Double] )]] {{APIComment|{{CModel.Bounds Reliability.Cmt}}}}  
*[[CModel.Bounds Reliability|Bounds_Reliability( Double, [Double], [Double] )]] {{APIComment|{{CModel.Bounds Reliability.Cmt}}}}  
Line 55: Line 62:
*[[CModel.Bounds FailureRate|Bounds_FailureRate( Double, [Double], [Double] )]] {{APIComment|{{Template:CModel.Bounds FailureRate.Cmt}} }}  
*[[CModel.Bounds FailureRate|Bounds_FailureRate( Double, [Double], [Double] )]] {{APIComment|{{Template:CModel.Bounds FailureRate.Cmt}} }}  
*[[CModel.Bounds Parameters|Bounds_Parameters]] {{APIComment|{{Template:CModel.Bounds Parameters.Cmt}}}}
*[[CModel.Bounds Parameters|Bounds_Parameters]] {{APIComment|{{Template:CModel.Bounds Parameters.Cmt}}}}
== Properties  ==
*Type (as ''[[ModelTypeEnum Enumeration|ModelTypeEnum]]'') {{APIComment|Gets the model type (e.g., 2-parameter Weibull).}}
*Category (as ''[[ModelCategoryEnum Enumeration|ModelCategoryEnum]]'') {{APIComment|Gets the model category (e.g., reliability).}}
*Designation (as ''string'') {{APIComment|Gets a string representing the model type (for example "2P-Weibull").}}
*ErrorHappened (as ''boolean'') {{APIComment|Whether or not the last calculation produced an error.}}
*ConfLevel (as ''double'') {{APIComment|Gets the confidence level that is currently used for calculations.}}
*NumStresses (as ''integer'') {{APIComment|Gets the number of stresses in the model.}}
*UnitID (as ''integer'') {{APIComment|Gets or sets the unit ID.}} [[#Notes|*]]


== Usage Example  ==
== Usage Example  ==

Revision as of 19:36, 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

ALTA Calculations

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