gov.sandia.cognition.math
Class AbstractScalarFunction<InputType>

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.math.AbstractScalarFunction<InputType>
Type Parameters:
InputType - The type of the input to the scalar function.
All Implemented Interfaces:
Evaluator<InputType,Double>, ScalarFunction<InputType>, CloneableSerializable, Serializable, Cloneable
Direct Known Subclasses:
AbstractRegressor, AbstractUnivariateScalarFunction, VectorEntryFunction

public abstract class AbstractScalarFunction<InputType>
extends AbstractCloneableSerializable
implements ScalarFunction<InputType>

An abstract implementation of the ScalarFunction interface. The evaluate method calls evaluateAsDouble.

Since:
3.3.3
Author:
Justin Basilico
See Also:
Serialized Form

Constructor Summary
AbstractScalarFunction()
          Creates a new AbstractScalarFunction.
 
Method Summary
 Double evaluate(InputType input)
          Returns the result of calling evaluateAsDouble.
 
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.ScalarFunction
evaluateAsDouble
 

Constructor Detail

AbstractScalarFunction

public AbstractScalarFunction()
Creates a new AbstractScalarFunction.

Method Detail

evaluate

public Double evaluate(InputType input)
Returns the result of calling evaluateAsDouble.

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