Class NegLogLikelihood

    • Constructor Detail

      • NegLogLikelihood

        public NegLogLikelihood​(DataIndexer indexer)
        Parameters:
        indexer - The DataIndexer to use as input provider.
    • Method Detail

      • getDimension

        public int getDimension()
        Specified by:
        getDimension in interface Function
        Returns:
        Retrieves the dimension value.
      • getInitialPoint

        public double[] getInitialPoint()
        Returns:
        Retrieves the initial point as double array.
      • valueAt

        public double valueAt​(double[] x)
        Computes the negative log-likelihood.
        Specified by:
        valueAt in interface Function
        Parameters:
        x - The input.
        Returns:
        Returns the computed negative log-likelihood.
        Throws:
        IllegalArgumentException - Thrown if parameters were invalid.
      • gradientAt

        public double[] gradientAt​(double[] x)
        Computes the gradient.
        Specified by:
        gradientAt in interface Function
        Parameters:
        x - The input.
        Returns:
        Returns the computed gradient.
        Throws:
        IllegalArgumentException - Thrown if parameters were invalid.