Skip to content

Erlang calculator for wireless networks: computes Erlang B and C values with user-friendly CLI.

Notifications You must be signed in to change notification settings

similato87/erlang-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 = \frac{1}{\sum_{k=0}^{N} \frac{N!}{k!(N-k)!} \left( \frac{A}{N} \right)^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 = \frac{P \times \frac{A}{N - A + A \times P}}{1 - P \times \left(1 - \frac{A}{N}\right)} $$

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

About

Erlang calculator for wireless networks: computes Erlang B and C values with user-friendly CLI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages