public class ContDistUniform extends ContDist
| Constructor and Description | 
|---|
ContDistUniform(Model owner,
               java.lang.String name,
               double lowerBorder,
               double upperBorder,
               boolean showInReport,
               boolean showInTrace)
Creates a stream of pseudo random numbers following a uniform
 distribution between the lower and the upper value parameter. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Reporter | 
createDefaultReporter()
Creates the default reporter for the RealDistUniform distribution. 
 | 
java.lang.Double | 
getInverseOfCumulativeProbabilityFunction(double p)
Abstract method to map a double  
p from 0...1 to the 
 distribution's domain by determining the value x that satisfies
 P(X < x) = p. | 
double | 
getLower()
Returns the lower border of the range of this uniform distribution. 
 | 
double | 
getUpper()
Returns the upper border of the range of this distribution. 
 | 
java.lang.Double | 
sample()
Returns the next floating point sample from this uniform distribution. 
 | 
void | 
setNonNegative(boolean newValue)
Overrides the same method of  
desmoj.dist.Distribution. | 
sampleTimeSpan, sampleTimeSpansampleObjectchangeRandomGenerator, getInitialSeed, getNonNegative, getNumSamples, isAntithetic, reset, reset, setAntithetic, setSeedgetCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setDescription, setReportercurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringpublic ContDistUniform(Model owner, java.lang.String name, double lowerBorder, double upperBorder, boolean showInReport, boolean showInTrace)
owner - Model : The distribution's ownername - java.lang.String : The distribution's namelowerBorder - double : The minimum value for this distributionupperBorder - double : The maximum value for this distributionshowInReport - boolean : Flag for producing reportsshowInTrace - boolean : Flag for producing trace outputpublic Reporter createDefaultReporter()
createDefaultReporter in class DistributionContDistUniformReporterpublic double getLower()
public double getUpper()
public java.lang.Double sample()
sample in class NumericalDist<java.lang.Double>public java.lang.Double getInverseOfCumulativeProbabilityFunction(double p)
p from 0...1 to the 
 distribution's domain by determining the value x that satisfies
 P(X < x) = p.getInverseOfCumulativeProbabilityFunction in class NumericalDist<java.lang.Double>p - double: A value between 0 and 1public void setNonNegative(boolean newValue)
desmoj.dist.Distribution. It
 makes no sense to set a RealDistUniform object with a
 negative lower border to nonNegative. In this case a warning will be
 sent. true the distribution returns positive samples only,
 otherwise it also produces negative samples, if possible.setNonNegative in class DistributionnewValue - boolean : If true the distribution is set to
            return positive samples only, otherwise it also produces
            negative samples, if possible.