List of utility methods to do List Product
Double | dotProduct(List dot Product if (v1.size() != v2.size()) throw new IllegalArgumentException("Vectors must be of equal length."); Double result = 0.0; for (int i = 0; i < v1.size(); i++) { result = result + (v1.get(i) * v2.get(i)); return result; |
Number | dotProductValue(List extends Number> oper1, List extends Number> oper2) dot Product Value return adjuestedDotProductValue(oper1, 0.0, oper2, 0.0);
|
List | getProductsFromString(List get Products From String return projects;
|
List | product(List
product List<String[]> results = new ArrayList<>(); product(results, lists, 0, new String[lists.size()]); return results; |
float | scalarProduct(List Scalar product of two vectors Be careful: Null entries are treated as 0! float sum = 0; for (int i = 0; i < a.size() && i < b.size(); i++) { if (a.get(i) != null && b.get(i) != null) { sum += a.get(i) * b.get(i); return sum; |
List | scalerProduct(final List scaler Product if (doubleList == null) throw new NullPointerException("The list is null. Aborting ..."); List<Double> outList = new ArrayList<>(); for (double d : doubleList) { outList.add(scalerFactor * d); return outList; |