public class RejectionSampling.ScalarEstimator.MinimizerFunction extends java.lang.Object implements Evaluator<java.lang.Double,java.lang.Double>
Modifier and Type | Field and Description |
---|---|
protected ProbabilityFunction<java.lang.Double> |
sampler
Sampler function
|
Constructor and Description |
---|
MinimizerFunction(ProbabilityFunction<java.lang.Double> sampler)
Creates a new instance of MinimizerFunction
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
evaluate(java.lang.Double parameter)
Evaluates the function on the given input and returns the output.
|
protected ProbabilityFunction<java.lang.Double> sampler
public MinimizerFunction(ProbabilityFunction<java.lang.Double> sampler)
sampler
- Sampler functionpublic java.lang.Double evaluate(java.lang.Double parameter)
Evaluator