opennlp.tools.ml.maxent.quasinewton

## Interface Function

- All Known Implementing Classes:
    NegLogLikelihood, ParallelNegLogLikelihood, QNMinimizer.L2RegFunction

      public interface Function

  Interface for a function

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getDimension()`
    `double[]` | `gradientAt(double[] x)`
    `double` | `valueAt(double[] x)`

- - ### Method Detail

    - #### getDimension

          int getDimension()

    - #### valueAt

          double valueAt(double[] x)

    - #### gradientAt

          double[] gradientAt(double[] x)

Copyright © 2026 The Apache Software Foundation. All rights reserved.