public static class AdaptiveRejectionSampling.PDFLogEvaluator extends AdaptiveRejectionSampling.LogEvaluator<ProbabilityFunction<java.lang.Double>>
function
Constructor and Description |
---|
PDFLogEvaluator(ProbabilityFunction<java.lang.Double> function)
Creates a new instance of PDFLogEvaluator
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(double input)
Produces a double output for the given double input
|
clone, getFunction, setFunction
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluate, evaluateAsDouble
public PDFLogEvaluator(ProbabilityFunction<java.lang.Double> function)
function
- PDF to wrappublic double evaluate(double input)
UnivariateScalarFunction
evaluate
in interface UnivariateScalarFunction
evaluate
in class AdaptiveRejectionSampling.LogEvaluator<ProbabilityFunction<java.lang.Double>>
input
- Input to the Evaluator