scram::core::CutSetProbabilityCalculator
Quantitative calculator of a probability value of a single cut set.
#include <probability_analysis.h>
Inherited by scram::core::McubCalculator, scram::core::RareEventCalculator
Public Functions
| Name | |
|---|---|
| double | Calculate(const std::vector< int > & cut_set, const Pdag::IndexMap< double > & p_vars)<br>Calculates a probability of a cut set, whose members are in AND relationship with each other. |
Public Functions Documentation
function Calculate
cpp
double Calculate(
const std::vector< int > & cut_set,
const Pdag::IndexMap< double > & p_vars
)Calculates a probability of a cut set, whose members are in AND relationship with each other.
Parameters:
- cut_set A cut set with positive indices of basic events.
- p_vars Probabilities of events mapped by the variable indices.
Return:
- The total probability of the cut set.
- 1 for an empty cut set indicating the base set.
Precondition:
- The cut set doesn't contain complements.
- Probability values are non-negative.
- Indices of events directly map to vector indices.
This function assumes independence of each member.
Updated on 2025-11-11 at 16:51:08 +0000
