Class ArrayMath
java.lang.Object
opennlp.tools.ml.ArrayMath
opennlp.tools.ml.maxent.quasinewton.ArrayMath
Deprecated.
Utility class for simple vector arithmetic.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intmaxIdx(double[] x) Deprecated.Find index of maximum element in the vector xMethods inherited from class opennlp.tools.ml.ArrayMath
argmax, innerProduct, invL2norm, l1norm, l2norm, logSumOfExps, max, sumFeatures, toDoubleArray, toIntArray
-
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.
-