Skip to content

scram::core::ProbabilityAnalyzer

Fault-tree-analysis-aware probability analyzer. More...

#include <probability_analysis.h>

Inherits from scram::core::ProbabilityAnalyzerBase, scram::core::ProbabilityAnalysis, scram::core::Analysis, boost::noncopyable

Public Functions

Name
virtual doubleCalculateTotalProbability(const Pdag::IndexMap< double > & p_vars)<br>Calculates the total probability with a different set of probability values than the one given upon construction.
template <class Algorithm > <br>ProbabilityAnalyzerBase(const FaultTreeAnalyzer< Algorithm > * fta, mef::MissionTime * mission_time)<br>Constructs probability analyzer from a fault tree analyzer.

Additional inherited members

Public Functions inherited from scram::core::ProbabilityAnalyzerBase

Name
Pdag *graph() const
const Zbdd &products() const
const Pdag::IndexMap< double > &p_vars() const
const FaultTreeAnalysis *fault_tree_analysis() const
doubleApplyInitiatingEventFrequency(double probability) const
doubleinitiating_event_frequency() const

Protected Functions inherited from scram::core::ProbabilityAnalyzerBase

Name
~ProbabilityAnalyzerBase() override =default

Protected Attributes inherited from scram::core::ProbabilityAnalyzerBase

Name
Pdag *graph_ <br>PDAG from the fault tree analysis.
const Zbdd *products_ <br>A collection of products.
Pdag::IndexMap< double >p_vars_ <br>Variable probabilities.
const FaultTreeAnalysis *fta_ <br>Pointer back to qualitative analysis.

Public Functions inherited from scram::core::ProbabilityAnalysis

Name
ProbabilityAnalysis(const FaultTreeAnalysis * fta, mef::MissionTime * mission_time)<br>Probability analysis with the results of qualitative analysis.
virtual~ProbabilityAnalysis() =default
voidAnalyze()<br>Performs quantitative analysis on the supplied fault tree.
doublep_total() const
const std::vector< std::pair< double, double > > &p_time() const
const Sil &sil() const

Protected Functions inherited from scram::core::ProbabilityAnalysis

Name
mef::MissionTime &mission_time()

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
doubleanalysis_time() const

Protected Functions inherited from scram::core::Analysis

Name
Settings &settings()
voidAddWarning(std::string msg)<br>Appends a warning message to the analysis warnings.
voidAddAnalysisTime(double time)<br>Adds time to the total analysis time.

Detailed Description

cpp
template <class Calculator >
class scram::core::ProbabilityAnalyzer;

Fault-tree-analysis-aware probability analyzer.

Template Parameters:

  • Calculator Quantitative analysis calculator.

Probability analyzer provides the main engine for probability analysis.

Public Functions Documentation

function CalculateTotalProbability

cpp
virtual double CalculateTotalProbability(
    const Pdag::IndexMap< double > & p_vars
)

Calculates the total probability with a different set of probability values than the one given upon construction.

Parameters:

  • p_vars A map of probabilities of the graph variables. The indices of the variables must map exactly to the values.

Return: The total probability calculated with the given values.

Reimplements: scram::core::ProbabilityAnalyzerBase::CalculateTotalProbability

function ProbabilityAnalyzerBase

cpp
template <class Algorithm >
inline ProbabilityAnalyzerBase(
    const FaultTreeAnalyzer< Algorithm > * fta,
    mef::MissionTime * mission_time
)

Constructs probability analyzer from a fault tree analyzer.

Parameters:

  • fta Fault tree analysis with results.
  • mission_time The mission time expression of the model.

Template Parameters:

  • Algorithm Qualitative analysis algorithm.

Precondition: The underlying fault tree must not have changed in any way since the fault tree analysis finished.


Updated on 2026-01-09 at 21:59:11 +0000