public class CDFPiecewiseLinearRandomGenerator extends CDFRandomGenerator
Constructor and Description |
---|
CDFPiecewiseLinearRandomGenerator(LoggedDiscreteCDF cdf) |
CDFPiecewiseLinearRandomGenerator(LoggedDiscreteCDF cdf,
long seed) |
Modifier and Type | Method and Description |
---|---|
long |
valueAt(double probability)
TODO This code assumes that the empirical minimum resp.
|
floorIndex, getDatumAt, getRankingAt, initializeTables, randomValue
public CDFPiecewiseLinearRandomGenerator(LoggedDiscreteCDF cdf)
cdf
- builds a CDFRandomValue engine around this
LoggedDiscreteCDF
, with a defaultly seeded RNGpublic CDFPiecewiseLinearRandomGenerator(LoggedDiscreteCDF cdf, long seed)
cdf
- builds a CDFRandomValue engine around this
LoggedDiscreteCDF
, with an explicitly seeded RNGseed
- the random number generator seedpublic long valueAt(double probability)
valueAt
in class CDFRandomGenerator
Copyright © 2013 Apache Software Foundation. All rights reserved.