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.org.apache.commons.math3.complex.ComplexevalLST(org.apache.commons.math3.complex.Complex s) The transform at a COMPLEX argument, exp(-s d), exact and analytic.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()Property alias for getMeandoublemu()Property alias for getMudoublephi()Property alias for getPhiprocess()Property alias for getProcessdoublerate()Property alias for getRatedouble[]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()Property alias for getSCVvoidsetMean(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()Property alias for getSkewnessdoublevar()Property alias for getVarMethods inherited from class jline.lang.processes.Distribution
evalProbInterval, getFeatureName, getName, getNumParams, getNumParams, getParam, getParam, getParams, getSupport, hasParam, 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 < 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
-
evalLST
public org.apache.commons.math3.complex.Complex evalLST(org.apache.commons.math3.complex.Complex s) The transform at a COMPLEX argument, exp(-s d), exact and analytic. The CDF sum ofDistribution.evalLST(org.apache.commons.math3.complex.Complex)cannot see this law at all: its measure is a single atom, which no grid of increments resolves.- Overrides:
evalLSTin classDistribution- Parameters:
s- the Laplace domain variable- Returns:
- the LST value at s
-
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 < 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()Property alias for getMu -
phi
public double phi()Property alias for getPhi -
process
Property alias for getProcess -
mean
public double mean()Property alias for getMean- Overrides:
meanin classDistribution
-
rate
public double rate()Property alias for getRate- Overrides:
ratein classDistribution
-
scv
public double scv()Property alias for getSCV- Overrides:
scvin classDistribution
-
skewness
public double skewness()Property alias for getSkewness- Overrides:
skewnessin classDistribution
-
var
public double var()Property alias for getVar- Overrides:
varin classDistribution
-