Package jdistlib
Class UniformRejectionEnvelope
java.lang.Object
jdistlib.UniformRejectionEnvelope
- All Implemented Interfaces:
RejectionEnvelope
A uniform proposal for a finite interval with a certified density bound.
-
Constructor Summary
ConstructorsConstructorDescriptionUniformRejectionEnvelope(double lower, double upper, double logDensityUpperBound) -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubleReturns log(M) in the majorization promise.doubledoubledoublelogProposalDensity(double x) Returns the normalized proposal log-density at x.doublesample(RandomEngine random) Draws from the normalized proposal distribution.
-
Constructor Details
-
UniformRejectionEnvelope
public UniformRejectionEnvelope(double lower, double upper, double logDensityUpperBound) - Parameters:
lower- finite proposal lower boundupper- finite proposal upper boundlogDensityUpperBound- certified upper bound on the normalized target log-density throughout the interval
-
-
Method Details
-
sample
Description copied from interface:RejectionEnvelopeDraws from the normalized proposal distribution.- Specified by:
samplein interfaceRejectionEnvelope
-
logProposalDensity
public double logProposalDensity(double x) Description copied from interface:RejectionEnvelopeReturns the normalized proposal log-density at x.- Specified by:
logProposalDensityin interfaceRejectionEnvelope
-
getLogMajorizationConstant
public double getLogMajorizationConstant()Description copied from interface:RejectionEnvelopeReturns log(M) in the majorization promise.- Specified by:
getLogMajorizationConstantin interfaceRejectionEnvelope
-
getLowerBound
public double getLowerBound() -
getUpperBound
public double getUpperBound() -
getLogDensityUpperBound
public double getLogDensityUpperBound()
-