gov.sandia.cognition.math
Class AbstractUnivariateScalarFunction

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
All Implemented Interfaces:
Evaluator<Double,Double>, ScalarFunction<Double>, UnivariateScalarFunction, CloneableSerializable, Serializable, Cloneable
Direct Known Subclasses:
AbstractDifferentiableUnivariateScalarFunction, AdaptiveRejectionSampling.AbstractEnvelope, AdaptiveRejectionSampling.LogEvaluator, SolverFunction, StandardDistributionNormalizer, ThresholdFunction, UnivariateGaussian.ErrorFunction, UnivariateGaussian.ErrorFunction.Inverse

@CodeReviews(reviews={@CodeReview(reviewer="Kevin R. Dixon",date="2008-12-02",changesNeeded=false,comments={"Now extends AbstractCloneableSerializeable.","Removed extraneous javadoc.","Otherwise, class looks fine."}),@CodeReview(reviewer="Kevin R. Dixon",date="2008-02-08",changesNeeded=false,comments="Looks fine.")})
public abstract class AbstractUnivariateScalarFunction
extends AbstractScalarFunction<Double>
implements UnivariateScalarFunction

Abstract implementation of ScalarFunction where the evaluate(Double) method calls back into the evaluate(double) method.

Since:
2.0
Author:
Kevin R. Dixon
See Also:
Serialized Form

Constructor Summary
AbstractUnivariateScalarFunction()
          Creates a new AbstractUnivariateScalarFunction.
 
Method Summary
 Double evaluate(Double input)
          Returns the result of calling evaluateAsDouble.
 double evaluateAsDouble(Double input)
          Evaluates the scalar function as a double.
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.math.UnivariateScalarFunction
evaluate
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Constructor Detail

AbstractUnivariateScalarFunction

public AbstractUnivariateScalarFunction()
Creates a new AbstractUnivariateScalarFunction.

Method Detail

evaluate

public Double evaluate(Double input)
Description copied from class: AbstractScalarFunction
Returns the result of calling evaluateAsDouble.

Specified by:
evaluate in interface Evaluator<Double,Double>
Overrides:
evaluate in class AbstractScalarFunction<Double>
Parameters:
input - The input value.
Returns:
The result evaluated as a double.

evaluateAsDouble

public double evaluateAsDouble(Double input)
Description copied from interface: ScalarFunction
Evaluates the scalar function as a double.

Specified by:
evaluateAsDouble in interface ScalarFunction<Double>
Parameters:
input - The input value.
Returns:
The scalar output calculated from the given input.