Examples of norm1()


Examples of Jama.Matrix.norm1()

            errorCount = try_failure(errorCount, "transpose()...",
                    "transpose unsuccessful");
        }
        A.transpose();
        try {
            check(A.norm1(), columnsummax);
            try_success("norm1...", "");
        } catch (java.lang.RuntimeException e) {
            errorCount = try_failure(errorCount, "norm1()...",
                    "incorrect norm calculation");
        }
View Full Code Here

Examples of Jama.Matrix.norm1()

            LUDecomposition LU = new LUDecomposition(M);
            Matrix L = LU.getL();
            Matrix U = LU.getU();
            int[] p = LU.getPivot();
            Matrix R = L.times(U).minus(M.getMatrix(p, 0, n - 1));
            double res = R.norm1() / (n * eps);

            print(fixedWidthDoubletoString(res, 12, 3));

            QRDecomposition QR = new QRDecomposition(M);
            Matrix Q = QR.getQ();
View Full Code Here

Examples of gov.sandia.cognition.math.matrix.Vector.norm1()

      final List<Vector> jointProbs = Lists.newArrayList();
      for (int i = 0; i < forwardProbabilities.size() - 1; i++) {
        final WeightedValue<Vector> input = forwardProbabilities.get(i);
        final Vector prod =
            hmm.getTransitionProbability().times(input.getValue());
        jointProbs.add(prod.scale(1d / prod.norm1()));
      }
      jointProbs
          .add(Iterables.getLast(forwardProbabilities).getValue());
     
      return jointProbs;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.