![JAR search and dependency download from the Maven repository](/logo.png)
com.asher_stern.crf.function.optimization.Minimizer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of CRF Show documentation
Show all versions of CRF Show documentation
Implementation of linear-chain Conditional Random Fields (CRF) in pure Java
The newest version!
package com.asher_stern.crf.function.optimization;
import java.math.BigDecimal;
import com.asher_stern.crf.function.Function;
/**
* Given a multivariate function, f(x), finds "x" in which the function has its global minimum value.
*
* @author Asher Stern
* Date: Nov 6, 2014
*
* @param
*/
public abstract class Minimizer
{
public Minimizer(F function)
{
this.function = function;
}
/**
* Find the vector x, where f(x) is minimized.
*/
public abstract void find();
/**
* Returns f(x), where x is the vector found by the function {@link #find()}.
* @return f(x), where x is the vector found by the function {@link #find()}.
*/
public abstract BigDecimal getValue();
/**
* Returns "x" -- the vector found by the function {@link #find()}.
* @return "x" -- the vector found by the function {@link #find()}.
*/
public abstract BigDecimal[] getPoint();
/**
* The function for which it is required to find the point in which it gets its minimum.
*/
protected final F function;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy