opennlp.maxent.quasinewton
Class LogLikelihoodFunction

java.lang.Object
  extended by opennlp.maxent.quasinewton.LogLikelihoodFunction
All Implemented Interfaces:
DifferentiableFunction, Function

public class LogLikelihoodFunction
extends Object
implements DifferentiableFunction

Evaluate log likelihood and its gradient from DataIndexer.


Constructor Summary
LogLikelihoodFunction(DataIndexer indexer)
           
 
Method Summary
 int getDomainDimension()
           
 double[] getInitialPoint()
           
 String[] getOutcomeLabels()
           
 int[][] getOutcomePatterns()
           
 String[] getPredLabels()
           
 double[] gradientAt(double[] x)
           
 double valueAt(double[] x)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogLikelihoodFunction

public LogLikelihoodFunction(DataIndexer indexer)
Method Detail

valueAt

public double valueAt(double[] x)
Specified by:
valueAt in interface Function

gradientAt

public double[] gradientAt(double[] x)
Specified by:
gradientAt in interface DifferentiableFunction

getDomainDimension

public int getDomainDimension()
Specified by:
getDomainDimension in interface Function

getInitialPoint

public double[] getInitialPoint()

getPredLabels

public String[] getPredLabels()

getOutcomeLabels

public String[] getOutcomeLabels()

getOutcomePatterns

public int[][] getOutcomePatterns()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.