N - public class ContDistCustom extends ContDist
| Constructor and Description |
|---|
ContDistCustom(Model owner,
java.lang.String name,
Function function,
double lower,
double upper,
boolean showInReport,
boolean showInTrace)
Instantiates the CustomContDist, making it possible to get samples.
|
| Modifier and Type | Method and Description |
|---|---|
Reporter |
createDefaultReporter()
Creates the default reporter for the CustomContDist distribution.
|
Function |
getFunction()
Returns the upper bound of possible values of this 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 |
getLowerBound()
Returns the lower bound of possible values of this distribution.
|
double |
getUpperBound()
Returns the upper bound of possible values of this distribution.
|
java.lang.Double |
sample()
Returns the next sample from this distribution.
|
sampleTimeSpan, sampleTimeSpansampleObjectchangeRandomGenerator, getInitialSeed, getNonNegative, getNumSamples, isAntithetic, reset, reset, setAntithetic, setNonNegative, 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 ContDistCustom(Model owner, java.lang.String name, Function function, double lower, double upper, boolean showInReport, boolean showInTrace)
owner - Model : The distribution's ownername - java.lang.String : The distribution's namefunction - Function: User-defined distribution FunctionshowInReport - boolean : Flag for producing reportsshowInTrace - boolean : Flag for producing trace outputpublic double getLowerBound()
public double getUpperBound()
public Function getFunction()
public Reporter createDefaultReporter()
createDefaultReporter in class DistributionContDistCustomReporterpublic 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 1P(X < x) = p