Class QNMinimizer.L2RegFunction

  • All Implemented Interfaces:
    Function
    Enclosing class:
    QNMinimizer

    public static class QNMinimizer.L2RegFunction
    extends Object
    implements Function
    L2-regularized objective function
    • Constructor Detail

      • L2RegFunction

        public L2RegFunction​(Function f,
                             double l2Cost)
    • 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 Function