bahamas.software_total_failure_probability_bbn

Attributes

logger

Classes

BBN

Bayesian belief network for reliability analysis of software

Module Contents

bahamas.software_total_failure_probability_bbn.logger[source]
class bahamas.software_total_failure_probability_bbn.BBN(defect_file, task_file, num_samples=1000, approx=False, data=None, seed=42)[source]

Bases: object

Bayesian belief network for reliability analysis of software

num_samples = 1000[source]
_approx = False[source]
_data = None[source]
_uca = ['UCA-A', 'UCA-B', 'UCA-C', 'UCA-D'][source]
_odc = ['Algorithm', 'Assignment', 'Checking', 'Documentation', 'Function', 'Interface',...[source]
_sdlc = ['Concept', 'Requirement', 'Design', 'Implementation', 'Testing', 'Install and Maintenance'][source]
_defect[source]
_task[source]
prob_stage[source]
prob_odc[source]
prob_dcp[source]
prob_total = None[source]
prob_uca[source]
_hemd_dist[source]
prob_stage_odc[source]
prob_uca_correlation[source]
_G = 0.25[source]
review_trigger_factor[source]
initialize_stage()[source]
calculate()[source]

Calculate software failure probability based on BBN

get_total_failure_probability()[source]

Get total failure probability

Returns:

mean, sigma, and samples

Return type:

tuple

get_uca(uca_type)[source]

Get UCA probability

Parameters:

uca_type (str) – Type of UCA

Returns:

mean, sigma, and samples

Return type:

tuple

plot(type='all', save=False, show=True)[source]

Plot calculated data

Parameters:
  • type (str, optional) – Type of plots to plot (defaults to ‘all’)

  • save (bool, optional) – Save plots into .png file if True (defaults to False)

Returns:

plotly figure object

Return type:

list or figure object