Skip to content

Files

Latest commit

2a64530 · Dec 21, 2023

History

History
48 lines (35 loc) · 1.23 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.23 KB

Erlang Calculator

Description

This project provides a simple Erlang B and C calculator. It's designed to calculate the blocking and delay probabilities in telecommunications traffic.

Features

  • Calculation of Erlang B (Blocking Probability).
  • Calculation of Erlang C (Delay Probability).

Mathematical Formulas

Erlang B Formula

Erlang B formula (Blocking Probability, ( B )):

B = 1 k = 0 N N ! k ! ( N k ) ! ( A N ) k

Where:

  • ( A ) is the offered traffic in Erlangs.
  • ( N ) is the number of servers.

Result

When the traffic load is 5 Erlangs and there is 2 servers: Erlang B

Erlang C Formula

Erlang C formula (Delay Probability, ( C )):

C = P × A N A + A × P 1 P × ( 1 A N )

Where:

  • ( P ) is the probability of delay (obtained from Erlang B formula).
  • ( A ) is the offered traffic in Erlangs.
  • ( N ) is the number of servers.

Result

When the traffic load is 5 Erlangs and there is 2 servers: Erlang C

Installation

Ensure you have Python and Matplotlib installed. Install Matplotlib using pip:

pip install matplotlib