
com.asher_stern.crf.function.optimization.Minimizer Maven / Gradle / Ivy
package com.asher_stern.crf.function.optimization;
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 double getValue();
/**
* Returns "x" -- the vector found by the function {@link #find()}.
* @return "x" -- the vector found by the function {@link #find()}.
*/
public abstract double[] 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