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

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

Go to download

Stanford Parser processes raw text in English, Chinese, German, Arabic, and French, and extracts constituency parse trees.

There is a newer version: 3.9.2
Show newest version
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