public class AcceptanceRejectionRandomNumberGenerator extends Object implements RandomNumberGenerator
RandomNumberGenerator by the acceptance rejection method.
Note that the acceptance rejection methods requires a two dimensional uniform random number sequence with independent components.| Constructor and Description |
|---|
AcceptanceRejectionRandomNumberGenerator(RandomNumberGenerator uniformRandomNumberGenerator,
DoubleUnaryOperator targetDensity,
DoubleUnaryOperator referenceDensity,
DoubleUnaryOperator referenceDistributionICDF,
double acceptanceLevel) |
public AcceptanceRejectionRandomNumberGenerator(RandomNumberGenerator uniformRandomNumberGenerator, DoubleUnaryOperator targetDensity, DoubleUnaryOperator referenceDensity, DoubleUnaryOperator referenceDistributionICDF, double acceptanceLevel)
public double[] getNext()
getNext in interface RandomNumberGeneratorpublic int getDimension()
getDimension in interface RandomNumberGeneratorCopyright © 2019. All rights reserved.