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

com.asher_stern.crf.function.optimization.PointAndGradientSubstractions 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.optimization;

/**
 * Encapsulates the substraction of two given points, and the substraction of the gradient calculated for them (for a given
 * function).
 * This class is used by {@link LbfgsMinimizer}.
 * 
 * 
 * @author Asher Stern
 * Date: Nov 7, 2014
 *
 */
public class PointAndGradientSubstractions
{
	public PointAndGradientSubstractions(double[] pointSubstraction, double[] gradientSubstraction)
	{
		super();
		this.pointSubstraction = pointSubstraction;
		this.gradientSubstraction = gradientSubstraction;
	}
	
	
	
	public double[] getPointSubstraction()
	{
		return pointSubstraction;
	}
	public double[] getGradientSubstraction()
	{
		return gradientSubstraction;
	}



	private final double[] pointSubstraction;
	private final double[] gradientSubstraction;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy