CDFPiecewiseLinearRandomGeneratorpublic abstract class CDFRandomGenerator
extends java.lang.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.| Modifier and Type | Method | Description |
|---|---|---|
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 © 2008–2025 Apache Software Foundation. All rights reserved.