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

com.asher_stern.crf.function.Function Maven / Gradle / Ivy

Go to download

Implementation of linear-chain Conditional Random Fields (CRF) in pure Java

There is a newer version: 1.2.0
Show newest version
package com.asher_stern.crf.function;

/**
 * A multivariate function. A function f(x), where x is a vector, and the function returns a scalar.
 * 
 * @author Asher Stern
 * Date: Nov 6, 2014
 *
 */
public abstract class Function
{
	/**
	 * Returns the f(x) -- the value of the function in the given x.
	 * @param point the "point" is x -- the input for the function.
	 * @return the value of f(x)
	 */
	public abstract double value(double[] point);
	
	/**
	 * The size (dimension) of the input vector (x).
	 * @return the size (dimension) of the input vector (x).
	 */
	public abstract int size();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy