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

edu.stanford.nlp.optimization.Function Maven / Gradle / Ivy

package edu.stanford.nlp.optimization;

/**
 * An interface for double-valued functions over double arrays.
 *
 * @author Dan Klein
 * @version 1.0
 * @since 1.0
 */
public interface Function {
  /**
   * Returns the value of the function at a single point.
   *
   * @param x a double[] input
   * @return the function value at the input
   */
  double valueAt(double[] x);

  /**
   * Returns the number of dimensions in the function's domain
   *
   * @return the number of domain dimensions
   */
  int domainDimension();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy