gov.sandia.cognition.statistics.bayesian
Class AdaptiveRejectionSampling.PDFLogEvaluator

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.math.AbstractScalarFunction<Double>
          extended by gov.sandia.cognition.math.AbstractUnivariateScalarFunction
              extended by gov.sandia.cognition.statistics.bayesian.AdaptiveRejectionSampling.LogEvaluator<ProbabilityFunction<Double>>
                  extended by gov.sandia.cognition.statistics.bayesian.AdaptiveRejectionSampling.PDFLogEvaluator
All Implemented Interfaces:
Evaluator<Double,Double>, ScalarFunction<Double>, UnivariateScalarFunction, CloneableSerializable, Serializable, Cloneable
Enclosing class:
AdaptiveRejectionSampling

public static class AdaptiveRejectionSampling.PDFLogEvaluator
extends AdaptiveRejectionSampling.LogEvaluator<ProbabilityFunction<Double>>

Wraps a PDF so that it returns the logEvaluate method.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.sandia.cognition.statistics.bayesian.AdaptiveRejectionSampling.LogEvaluator
function
 
Constructor Summary
AdaptiveRejectionSampling.PDFLogEvaluator(ProbabilityFunction<Double> function)
          Creates a new instance of PDFLogEvaluator
 
Method Summary
 double evaluate(double input)
          Produces a double output for the given double input
 
Methods inherited from class gov.sandia.cognition.statistics.bayesian.AdaptiveRejectionSampling.LogEvaluator
clone, getFunction, setFunction
 
Methods inherited from class gov.sandia.cognition.math.AbstractUnivariateScalarFunction
evaluate, evaluateAsDouble
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdaptiveRejectionSampling.PDFLogEvaluator

public AdaptiveRejectionSampling.PDFLogEvaluator(ProbabilityFunction<Double> function)
Creates a new instance of PDFLogEvaluator

Parameters:
function - PDF to wrap
Method Detail

evaluate

public double evaluate(double input)
Description copied from interface: UnivariateScalarFunction
Produces a double output for the given double input

Specified by:
evaluate in interface UnivariateScalarFunction
Overrides:
evaluate in class AdaptiveRejectionSampling.LogEvaluator<ProbabilityFunction<Double>>
Parameters:
input - Input to the Evaluator
Returns:
output at the given input