Package jline.api.qsys
Class QsysLindleyMoment
java.lang.Object
jline.api.qsys.QsysLindleyMoment
One conditional Lindley moment for exponential primitives.
Evaluates E[max(Wn + S - A, 0)^m] with A ~ Exp(lambda) and
S ~ Exp(mu). This is the algorithm shared by Qsys_mm1_lindley,
which calls it once per moment order, and Qsys_hh1_lindley, which mixes
it over the arrival and service phases. See Qsys_mm1_lindley for the
derivation and for why the upper incomplete gamma function reduces to a finite
sum here.
Port of MATLAB qsys_lindley_moment.m.
- Since:
- LINE 3.1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublemoment(double lambda, double mu, double Wn, int m) Evaluates the conditional moment.
-
Method Details
-
moment
public static double moment(double lambda, double mu, double Wn, int m) Evaluates the conditional moment.- Parameters:
lambda- arrival rate, positivemu- service rate, positiveWn- current waiting time, finite and nonnegativem- moment order, at least 1- Returns:
E[max(Wn + S - A, 0)^m]
-