public class DiscreteDistHypergeo extends DiscreteDist<java.lang.Long>
| Constructor and Description |
|---|
DiscreteDistHypergeo(Model owner,
java.lang.String name,
int setSize,
int markedAmount,
int subsetSize,
boolean showInReport,
boolean showInTrace)
Creates a stream of pseudo random numbers following a Hypergeometrical
distribution.
|
| Modifier and Type | Method and Description |
|---|---|
Reporter |
createDefaultReporter()
Creates the default reporter for the DiscreteDistHypergeo distribution.
|
java.lang.Long |
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. |
int |
getMarkedAmount() |
int |
getSetSize() |
int |
getSubsetSize() |
java.lang.Long |
sample()
Returns the next sample from this distribution.
|
sampleObject, sampleTimeSpan, sampleTimeSpanchangeRandomGenerator, 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 DiscreteDistHypergeo(Model owner, java.lang.String name, int setSize, int markedAmount, int subsetSize, boolean showInReport, boolean showInTrace)
owner - Model : The distribution's ownername - java.lang.String : The distribution's namesetSize - int : The size of the underlying set.markedAmount - int : The amount of marked objects within the underlying set.subsetSize - int : The size of the random subset of the underlying set.showInReport - boolean : Flag for producing reportsshowInTrace - boolean : Flag for producing trace outputpublic Reporter createDefaultReporter()
createDefaultReporter in class DistributionDistributionReporterpublic int getSetSize()
public int getMarkedAmount()
public int getSubsetSize()
public java.lang.Long sample()
sample in class NumericalDist<java.lang.Long>public java.lang.Long 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.Long>p - double: A value between 0 and 1P(X < x) = p