Class Erlang
java.lang.Object
math.Erlang
Name: Erlang
Description: This class provides methods to compute Erlang-B and Erlang-C formulas with a numerically stable algorithm.
Date: 13/apr/07 Time: 10:43:39
- Version:
- 1.0
- Author:
- Bertoli Marco
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleerlangB(double traffic, int servers) Computes Erlang-B formula (probability of blocking) with a recursive method to avoid numeric instabilitystatic doubleerlangC(double traffic, int servers) Computes Erlang-C formula (probability of queueing) basing on Erlang-B evaluation
-
Constructor Details
-
Erlang
public Erlang()
-
-
Method Details
-
erlangB
Computes Erlang-B formula (probability of blocking) with a recursive method to avoid numeric instability- Parameters:
traffic- The total traffic offered (in erlangs) that is arrival rate * service demand. Must be greater than zero.servers- number of servers. Must be greater than one.- Returns:
- computed value
- Throws:
IllegalArgumentException- iftraffic <= 0orservers <= 0
-
erlangC
Computes Erlang-C formula (probability of queueing) basing on Erlang-B evaluation- Parameters:
traffic- The total traffic offered (in erlangs) that is arrival rate * service demand. Must be greater than zero.servers- number of servers. Must be greater than one.- Returns:
- computed value
- Throws:
IllegalArgumentException- if traffic <= 0 or servers <= 0
-