Пример #1
0
 private double doubleVectorAbs(Vector<Vector<Double>> doubleVector) {
   double totalX = 0;
   for (Vector<Double> vector : doubleVector) {
     totalX += Math.pow(vectorAbs(vector), 2);
   }
   return Math.sqrt(totalX);
 }
Пример #2
0
 private double vectorAbs(Vector<Double> vector) {
   double totalX = 0;
   for (Double x : vector) totalX += Math.pow(x, 2);
   return Math.sqrt(totalX);
 }