All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gov.sandia.cognition.math.UnivariateScalarFunction Maven / Gradle / Ivy

/*
 * File:                ScalarFunction.java
 * Authors:             Kevin R. Dixon
 * Company:             Sandia National Laboratories
 * Project:             Cognitive Foundry
 *
 * Copyright September 11, 2007, Sandia Corporation.  Under the terms of Contract
 * DE-AC04-94AL85000, there is a non-exclusive license for use of this work by
 * or on behalf of the U.S. Government. Export of this program may require a
 * license from the United States Government. See CopyrightHistory.txt for
 * complete details.
 *
 */

package gov.sandia.cognition.math;

import gov.sandia.cognition.annotation.CodeReview;
import gov.sandia.cognition.util.CloneableSerializable;
import gov.sandia.cognition.evaluator.Evaluator;

/**
 * Simple interface that describes a function that maps the reals to the reals,
 * has a Double to Double and double to double
 *
 * @author Kevin R. Dixon
 * @since  2.0
 *
 */
@CodeReview(
    reviewer="Kevin R. Dixon",
    date="2008-02-26",
    changesNeeded=false,
    comments="Looks good."
)
public interface UnivariateScalarFunction
    extends Evaluator,
    CloneableSerializable
{

    /**
     * Produces a double output for the given double input
     * @param input 
     * Input to the Evaluator
     * @return 
     * output at the given input
     */
    double evaluate(
        double input );

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy