scram::core::UncertaintyAnalysis
Uncertainty analysis and statistics for top event or gate probabilities with probability distributions of basic events.
#include <uncertainty_analysis.h>
Inherits from scram::core::Analysis, boost::noncopyable
Inherited by scram::core::UncertaintyAnalyzer< Calculator >
Public Functions
| Name | |
|---|---|
| UncertaintyAnalysis(const ProbabilityAnalysis * prob_analysis)<br>Uncertainty analysis on the fault tree processed by probability analysis. | |
| virtual | ~UncertaintyAnalysis() =default |
| void | Analyze()<br>Performs quantitative analysis on the total probability. |
| double | mean() const |
| double | sigma() const |
| double | error_factor() const |
| const std::pair< double, double > & | confidence_interval() const |
| const std::vector< std::pair< double, double > > & | distribution() const |
| const std::vector< double > & | quantiles() const |
Protected Functions
| Name | |
|---|---|
| std::vector< std::pair< int, mef::Expression & > > | GatherDeviateExpressions(const Pdag * graph)<br>Gathers deviate expressions of variables. |
| void | SampleExpressions(const std::vector< std::pair< int, mef::Expression & > > & deviate_expressions, Pdag::IndexMap< double > * p_vars)<br>Samples uncertain probabilities. |
Additional inherited members
Public Functions inherited from scram::core::Analysis
| Name | |
|---|---|
| Analysis(Settings settings) | |
| virtual | ~Analysis() =0<br>Abstract class. |
| const Settings & | settings() const |
| const std::string & | warnings() const |
| double | analysis_time() const |
| void | AddAnalysisTime(double time)<br>Adds time to the total analysis time. |
| void | AddWarning(std::string msg)<br>Appends a warning message to the analysis warnings. |
| Settings & | settings() |
Public Functions Documentation
function UncertaintyAnalysis
explicit UncertaintyAnalysis(
const ProbabilityAnalysis * prob_analysis
)Uncertainty analysis on the fault tree processed by probability analysis.
Parameters:
- prob_analysis Completed probability analysis.
function ~UncertaintyAnalysis
virtual ~UncertaintyAnalysis() =defaultfunction Analyze
void Analyze()Performs quantitative analysis on the total probability.
Note: Undefined behavior if analysis called two or more times.
function mean
inline double mean() constReturn: Mean of the final distribution.
function sigma
inline double sigma() constReturn: Standard deviation of the final distribution.
function error_factor
inline double error_factor() constReturn: Error factor for 95% confidence level.
function confidence_interval
inline const std::pair< double, double > & confidence_interval() constReturn: 95% confidence interval of the mean.
function distribution
inline const std::vector< std::pair< double, double > > & distribution() constReturn: The distribution histogram.
function quantiles
inline const std::vector< double > & quantiles() constReturn: Quantiles of the distribution.
Protected Functions Documentation
function GatherDeviateExpressions
std::vector< std::pair< int, mef::Expression & > > GatherDeviateExpressions(
const Pdag * graph
)Gathers deviate expressions of variables.
Parameters:
- graph PDAG with the variables.
Return: The gathered deviate expressions with variable indices.
function SampleExpressions
void SampleExpressions(
const std::vector< std::pair< int, mef::Expression & > > & deviate_expressions,
Pdag::IndexMap< double > * p_vars
)Samples uncertain probabilities.
Parameters:
- deviate_expressions A collection of deviate expressions.
- p_vars Indices to probabilities mapping with values.
Updated on 2025-11-11 at 16:51:08 +0000
