public abstract class CDFRandomGenerator extends Object
LoggedDiscreteCDF
. The discrete CDF is a pointwise
approximation of the "real" CDF. We therefore have a choice of interpolation
rules.
A concrete subclass of this abstract class will implement valueAt(double)
using a class-dependent interpolation rule.限定符和类型 | 方法和说明 |
---|---|
protected int |
floorIndex(double probe) |
protected long |
getDatumAt(int index) |
protected double |
getRankingAt(int index) |
protected void |
initializeTables(LoggedDiscreteCDF cdf) |
long |
randomValue() |
abstract long |
valueAt(double probability) |
protected final void initializeTables(LoggedDiscreteCDF cdf)
protected int floorIndex(double probe)
protected double getRankingAt(int index)
protected long getDatumAt(int index)
public long randomValue()
public abstract long valueAt(double probability)
Copyright © 2009 The Apache Software Foundation