471472473474475476477478
DoubleVector usr2Vector = usr2.getVector(); // Euclidean distance return Math.pow( usr1Vector .subtract(usr2Vector) .applyToElements(new SquareVectorFunction()) .sum() , 0.5); }
511512513514515516517518
DoubleVector itm2Vector = itm2.getVector(); // Euclidean distance return Math.pow( itm1Vector .subtract(itm2Vector) .applyToElements(new SquareVectorFunction()) .sum() , 0.5); }