Package jline.api.fj
Class FJ_char_maxKt
-
- All Implemented Interfaces:
public final class FJ_char_maxKt
-
-
Method Summary
Modifier and Type Method Description final static CharMaxResultfj_char_max_exp(Integer K, Double mu)Characteristic maximum M_K for exponential distribution. final static CharMaxResultfj_char_max_erlang(Integer K, Integer kStages, Double mu)Characteristic maximum M_K for Erlang-k distribution. -
-
Method Detail
-
fj_char_max_exp
final static CharMaxResult fj_char_max_exp(Integer K, Double mu)
Characteristic maximum M_K for exponential distribution.
m_K = ln(K) / mu M_K = H_K / mu (exact for exponential)
- Parameters:
K- Number of random variables (positive integer)mu- Rate parameter (positive)- Returns:
CharMaxResult with M_K and m_K
-
fj_char_max_erlang
final static CharMaxResult fj_char_max_erlang(Integer K, Integer kStages, Double mu)
Characteristic maximum M_K for Erlang-k distribution.
Finds m_K by solving: exp(-mum_K) * sum_{i=0}^{k-1} (mum_K)^i/i! = 1/K
Then: M_K = (k/mu) * 1 + K * exp(-mu*m_K) * (mu*m_K)^k / k!
- Parameters:
K- Number of random variables (positive integer)kStages- Number of Erlang stages (positive integer)mu- Rate parameter per stage (positive)- Returns:
CharMaxResult with M_K and m_K
-
-
-
-