Package jline.lang.processes
Class Det
java.lang.Object
jline.lang.processes.Distribution
jline.lang.processes.Det
- All Implemented Interfaces:
Serializable,Copyable
A Deterministic distribution taking a single constant value.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDet(double t) Creates a deterministic distribution with the specified constant value. -
Method Summary
Modifier and TypeMethodDescriptiondoubleevalCDF(double t) Evaluates the cumulative distribution function at the given point.doubleevalLST(double s) Evaluates the Laplace-Stieltjes transform at the given point.static DetfitMean(double mean) Creates a deterministic distribution with the specified mean value.doublegetMean()Gets the mean of this deterministic distribution.doublegetMu()Gets the rate (inverse of the constant value).doublegetPhi()Gets the phase parameter.Gets the matrix representation of this deterministic process (for PH compatibility).doublegetRate()Gets the rate of this deterministic distribution.Gets the process representation with actual distribution parameters.doublegetSCV()Gets the squared coefficient of variation.doubleGets the skewness of this deterministic distribution.doublegetVar()Gets the variance of this deterministic distribution.booleanChecks if this is a continuous distribution.booleanChecks if this is a disabled distribution.booleanChecks if this is a discrete distribution.booleanChecks if this distribution has immediate (zero) service time.doublemean()Kotlin-style property alias for getMean()doublemu()Kotlin-style property alias for getMu()doublephi()Kotlin-style property alias for getPhi()process()Kotlin-style property alias for getProcess()doublerate()Kotlin-style property alias for getRate()double[]sample(int n) Generates random samples from this distribution using default random generator.double[]Generates random samples from this distribution using the specified random generator.doublescv()Kotlin-style property alias for getSCV()voidsetMean(double t) Sets the mean (constant value) of this deterministic distribution.voidsetProcess(Map<Integer, Matrix> proc) Sets the matrix representation of this deterministic process.doubleskewness()Kotlin-style property alias for getSkewness()doublevar()Kotlin-style property alias for getVar()Methods inherited from class jline.lang.processes.Distribution
evalProbInterval, getName, getNumParams, getParam, getSupport, isMarkovian, name, numParams, param, setNumParams, setParam, support
-
Field Details
-
process
-
-
Constructor Details
-
Det
public Det(double t) Creates a deterministic distribution with the specified constant value.- Parameters:
t- the constant value for this deterministic distribution
-
-
Method Details
-
fitMean
Creates a deterministic distribution with the specified mean value. This is equivalent to new Det(mean).- Parameters:
mean- the mean value for the deterministic distribution- Returns:
- a new Det distribution with the specified mean
-
evalCDF
public double evalCDF(double t) Evaluates the cumulative distribution function at the given point. Returns 0 if t invalid input: '<' value, 1 if t >= value.- Specified by:
evalCDFin classDistribution- Parameters:
t- the point at which to evaluate the CDF- Returns:
- 0 or 1 depending on whether t has reached the deterministic value
-
evalLST
public double evalLST(double s) Evaluates the Laplace-Stieltjes transform at the given point.- Specified by:
evalLSTin classDistribution- Parameters:
s- the transform variable- Returns:
- e^(-s*t) where t is the deterministic value
-
getMean
public double getMean()Gets the mean of this deterministic distribution.- Specified by:
getMeanin classDistribution- Returns:
- the constant value of the distribution
-
setMean
public void setMean(double t) Sets the mean (constant value) of this deterministic distribution.- Parameters:
t- the new constant value
-
getMu
public double getMu()Gets the rate (inverse of the constant value).- Returns:
- 1/t where t is the deterministic value
-
getPhi
public double getPhi()Gets the phase parameter.- Returns:
- always returns 1 for deterministic distribution
-
getRepresentation
Gets the process representation with actual distribution parameters. Returns MatrixCell{[t]} for deterministic value.- Returns:
- MatrixCell containing the distribution parameter
-
getProcess
Gets the matrix representation of this deterministic process (for PH compatibility).- Returns:
- map containing the process matrices
-
setProcess
Sets the matrix representation of this deterministic process.- Parameters:
proc- the process matrices to set
-
getRate
public double getRate()Gets the rate of this deterministic distribution.- Overrides:
getRatein classDistribution- Returns:
- 1/t where t is the deterministic value
-
getSCV
public double getSCV()Gets the squared coefficient of variation. For deterministic distribution, SCV = 0 (no variance).- Specified by:
getSCVin classDistribution- Returns:
- always returns 0
-
getSkewness
public double getSkewness()Gets the skewness of this deterministic distribution.- Specified by:
getSkewnessin classDistribution- Returns:
- always returns 0 (no skewness)
-
getVar
public double getVar()Gets the variance of this deterministic distribution.- Overrides:
getVarin classDistribution- Returns:
- always returns 0 (no variance)
-
isContinuous
public boolean isContinuous()Description copied from class:DistributionChecks if this is a continuous distribution.- Overrides:
isContinuousin classDistribution- Returns:
- true if this is a continuous distribution, false otherwise
-
isDisabled
public boolean isDisabled()Description copied from class:DistributionChecks if this is a disabled distribution.- Overrides:
isDisabledin classDistribution- Returns:
- true if this is a disabled distribution, false otherwise
-
isDiscrete
public boolean isDiscrete()Description copied from class:DistributionChecks if this is a discrete distribution.- Overrides:
isDiscretein classDistribution- Returns:
- true if this is a discrete distribution, false otherwise
-
isImmediate
public boolean isImmediate()Description copied from class:DistributionChecks if this distribution has immediate (zero) service time.- Overrides:
isImmediatein classDistribution- Returns:
- true if the distribution is immediate or has mean invalid input: '<' Zero threshold
-
sample
public double[] sample(int n) Description copied from class:DistributionGenerates random samples from this distribution using default random generator.- Overrides:
samplein classDistribution- Parameters:
n- the number of samples to generate- Returns:
- array of random samples
-
sample
Description copied from class:DistributionGenerates random samples from this distribution using the specified random generator.- Specified by:
samplein classDistribution- Parameters:
n- the number of samples to generaterandom- the random number generator to use- Returns:
- array of random samples
-
mu
public double mu()Kotlin-style property alias for getMu() -
phi
public double phi()Kotlin-style property alias for getPhi() -
process
Kotlin-style property alias for getProcess() -
mean
public double mean()Kotlin-style property alias for getMean()- Overrides:
meanin classDistribution
-
rate
public double rate()Kotlin-style property alias for getRate()- Overrides:
ratein classDistribution
-
scv
public double scv()Kotlin-style property alias for getSCV()- Overrides:
scvin classDistribution
-
skewness
public double skewness()Kotlin-style property alias for getSkewness()- Overrides:
skewnessin classDistribution
-
var
public double var()Kotlin-style property alias for getVar()- Overrides:
varin classDistribution
-