Class NegLogLikelihood

  • All Implemented Interfaces:
    Function
    Direct Known Subclasses:
    ParallelNegLogLikelihood

    public class NegLogLikelihood
    extends java.lang.Object
    implements Function
    Evaluate negative log-likelihood and its gradient from DataIndexer.
    • Constructor Detail

      • NegLogLikelihood

        public NegLogLikelihood​(DataIndexer indexer)
    • Method Detail

      • getInitialPoint

        public double[] getInitialPoint()
      • valueAt

        public double valueAt​(double[] x)
        Negative log-likelihood
        Specified by:
        valueAt in interface Function
      • gradientAt

        public double[] gradientAt​(double[] x)
        Compute gradient
        Specified by:
        gradientAt in interface Function