coverage_block
Applies diagnostic coverage (DC) to fault rates.
CoverageBlock
Bases: BlockInterface
Applies diagnostic coverage (DC) to a fault type.
Splits FIT rates into residual and latent components based on the defined coverage values (c_R, c_L).
Source code in src/ecc_analyzer/core/coverage_block.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |
__init__(target_fault, dc_rate_c_or_cR, dc_rate_latent_cL=None, is_spfm=True)
Initializes the CoverageBlock with specific diagnostic coverage parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target_fault
|
FaultType
|
The fault type (Enum) to which coverage is applied. |
required |
dc_rate_c_or_cR
|
float
|
The diagnostic coverage for residual faults (typically denoted as K_DC or c_R). |
required |
dc_rate_latent_cL
|
Optional[float]
|
Optional specific coverage for latent faults (c_L). If None, standard ISO 26262 logic (1 - c_R) is assumed. |
None
|
is_spfm
|
bool
|
Indicates if this block processes the SPFM/residual path. Defaults to True. |
True
|
Source code in src/ecc_analyzer/core/coverage_block.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |
compute_fit(spfm_rates, lfm_rates)
Transforms the input fault rate dictionaries by applying diagnostic coverage logic.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
spfm_rates
|
dict[FaultType, float]
|
Current residual failure rates. |
required |
lfm_rates
|
dict[FaultType, float]
|
Current latent failure rates. |
required |
Returns:
| Type | Description |
|---|---|
tuple[dict[FaultType, float], dict[FaultType, float]]
|
tuple[dict[FaultType, float], dict[FaultType, float]]: A tuple containing: - Updated SPFM rates dictionary. - Updated LFM rates dictionary. |
Source code in src/ecc_analyzer/core/coverage_block.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |