Flavio Poletti > Math-Telephony-ErlangB-0.06 > Math::Telephony::ErlangB

Download:
Math-Telephony-ErlangB-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.06   Source   Latest Release: Math-Telephony-ErlangB-1.0.0

NAME ^

Math::Telephony::ErlangB - Perl extension for Erlang B calculations

SYNOPSIS ^

  use Math::Telephony::ErlangB qw( :all );

  # Evaluate blocking probability
  $bprob = blocking_probability($traffic, $servers);
  $gos = gos($traffic, $servers); # Same result as above

  # Dimension minimum number of needed servers
  $servers = servers($traffic, $gos);

  # Calculate maximum serveable traffic
  $traffic = traffic($servers, $gos); # Default precision 0.001
  $traffic = traffic($servers, $gos, 1e-10);

DESCRIPTION ^

This module contains various functions to deal with Erlang B calculations.

The Erlang B model allows dimensioning the number of servers in a M/M/S/0/inf model (Kendall notation):

EXPORT

None by default. Following functions can be imported at once via the ":all" keyword.

VARIABLES

These variables control different aspects of this module, such as default values.

$default_precision = 0.001;

This variable is the default precision used when evaluating the maximum traffic sustainable using the traffic() function below.

FUNCTIONS

The following functions are available for exporting. Three "concepts" are common to them all:

$bprob = blocking_probability($traffic, $servers);

Evaluate the blocking probability from given traffic and numer of servers.

$gos = gos($traffic, $servers);

Evaluate the grade of service from given traffic and number of servers. For Erlang B, the GoS figure corresponds to the blocking probability.

$servers = servers($traffic, $bprob);

Calculate minimum number of servers needed to serve the given traffic with a blocking probability not greater than that given.

$traffic = traffic($servers, $bprob);
$traffic = traffic($servers, $bprob, $prec);

Calculate the maximum offered traffic that can be served by the given number of serves with a blocking probability not greater than that given.

The prec parameter allows to set the precision in this traffic calculation. If undef it defaults to $default_precision in this package.

SEE ALSO ^

You can google for plenty of information about Erlang B.

AUTHOR ^

Flavio Poletti <flavio@polettix.it>

COPYRIGHT AND LICENSE ^

Copyright (C) 2005 by Flavio Poletti

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.