Class ArrayMath

java.lang.Object
opennlp.tools.ml.ArrayMath
opennlp.tools.ml.maxent.quasinewton.ArrayMath

@Deprecated public class ArrayMath extends ArrayMath
Deprecated.
Utility class for simple vector arithmetic.
  • Constructor Details

    • ArrayMath

      public ArrayMath()
      Deprecated.
  • Method Details

    • maxIdx

      public static int maxIdx(double[] x)
      Deprecated.
      Find index of maximum element in the vector x
      Parameters:
      x - input vector
      Returns:
      index of the maximum element. Index of the first maximum element is returned if multiple maximums are found.