Class Disabled
-
- All Implemented Interfaces:
-
java.io.Serializable,jline.lang.Copyable
public class Disabled extends Distribution implements Serializable
A special distribution to denote disabled service or arrival.
-
-
Constructor Summary
Constructors Constructor Description Disabled()
-
Method Summary
Modifier and Type Method Description static Disabledinstance()static DisabledgetInstance()doubleevalCDF(double t)Evaluates the cumulative distribution function (CDF) at the given point. doubleevalLST(double s)Evaluate the Laplace-Stieltjes Transform at s doublegetMean()Gets the mean (expected value) of this distribution. doublegetMu()doublegetPhi()doublegetRate()Gets the rate of this distribution (inverse of mean). doublegetSCV()Gets the squared coefficient of variation (SCV) of this distribution. doublegetSkewness()Gets the skewness of this distribution. doublegetVar()Gets the variance of this distribution. booleanisDisabled()Checks if this is a disabled distribution. booleanisImmediate()Checks if this distribution has immediate (zero) service time. Array<double>sample(int n)Generates random samples from this distribution using default random generator. Array<double>sample(int n, Random random)Generates random samples from this distribution using the specified random generator. -
Methods inherited from class jline.lang.processes.Distribution
evalProbInterval, getName, getNumParams, getParam, getSupport, isContinuous, isDiscrete, isMarkovian, mean, name, numParams, param, rate, scv, setNumParams, setParam, skewness, support, var -
Methods inherited from class jline.lang.Copyable
copy -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getInstance
static Disabled getInstance()
-
evalCDF
double evalCDF(double t)
Evaluates the cumulative distribution function (CDF) at the given point.
- Parameters:
t- the point at which to evaluate the CDF- Returns:
the CDF value at point t
-
evalLST
double evalLST(double s)
Evaluate the Laplace-Stieltjes Transform at s
- Parameters:
s- the Laplace domain variable- Returns:
the LST value at s
-
getMean
double getMean()
Gets the mean (expected value) of this distribution.
- Returns:
the mean value
-
getMu
double getMu()
-
getPhi
double getPhi()
-
getRate
double getRate()
Gets the rate of this distribution (inverse of mean).
- Returns:
the rate value (1/mean)
-
getSCV
double getSCV()
Gets the squared coefficient of variation (SCV) of this distribution. SCV = Var(X) / E[X]^2.
- Returns:
the squared coefficient of variation
-
getSkewness
double getSkewness()
Gets the skewness of this distribution. Skewness measures the asymmetry of the probability distribution.
- Returns:
the skewness value
-
getVar
double getVar()
Gets the variance of this distribution. Computed as SCV * mean^2.
- Returns:
the variance
-
isDisabled
boolean isDisabled()
Checks if this is a disabled distribution.
- Returns:
true if this is a disabled distribution, false otherwise
-
isImmediate
boolean isImmediate()
Checks if this distribution has immediate (zero) service time.
- Returns:
true if the distribution is immediate or has mean <Zero threshold
-
sample
Array<double> sample(int n)
Generates random samples from this distribution using default random generator.
- Parameters:
n- the number of samples to generate- Returns:
array of random samples
-
-
-
-