bahamas.sdlc_stage_hep_calculation

Attributes

logger

Functions

sdlc_stage_hep_calculation(excel_file_path, ...[, ...])

Module Contents

bahamas.sdlc_stage_hep_calculation.logger[source]
bahamas.sdlc_stage_hep_calculation.sdlc_stage_hep_calculation(excel_file_path, sheet_name, hemd, num_samples=100, distribution='lognorm')[source]
Parameters:
  • excel_file_path (str) – Filename of the spreadsheet with the number of actions and types

  • sheet_name (str) – Sheet name in the spreadsheet with the data

  • hemd (dict) – Dictionary of rvs functions, keyed by action type

  • num_samples (int) – Number of samples to generate for each action

  • distribution (str) – Type of distribution to use (currently always “lognorm”)

Returns:

  • total, fitted (numpy.array, dict) – The samples for the SDLC stage by considering all human error propagations, and a dictionary of the fitted mu and sigma parameters.

  • This function reads in the number of human actions and human error modes from a

  • spreadsheet, and calculates the human error probability distributions.