edu.stanford.nlp.optimization.Function Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stanford-parser Show documentation
Show all versions of stanford-parser Show documentation
Stanford Parser processes raw text in English, Chinese, German, Arabic, and French, and extracts constituency parse trees.
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();
}