Examples of plusEquals()


Examples of Jama.Matrix.plusEquals()

                    "(C = A - B, but C + B != A)");
        }
        C = A.minus(B);
        C.plusEquals(B);
        try {
            A.plusEquals(S);
            errorCount = try_failure(errorCount,
                    "plusEquals conformance check... ",
                    "nonconformance not raised");
        } catch (IllegalArgumentException e) {
            try_success("plusEquals conformance check... ", "");
View Full Code Here

Examples of cc.mallet.types.Matrix.plusEquals()

  {
    double alph = assn.getDouble (alpha);
    int[] sizes = sizesFromVarSet (xs);
    Matrix diag = Matrices.diag (sizes, alph);
    Matrix matrix = Matrices.constant (sizes, -alph);
    matrix.plusEquals (diag);
    return LogTableFactor.makeFromLogMatrix (xs.toVariableArray (), (SparseMatrixn) matrix);
  }

  private int[] sizesFromVarSet (VarSet xs)
  {
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.math.linearalgebra.Vector.plusEquals()

      for(Iterator<DBID> clusterIter = list.iterator(); clusterIter.hasNext();) {
        if(mean == null) {
          mean = database.get(clusterIter.next()).getColumnVector();
        }
        else {
          mean.plusEquals(database.get(clusterIter.next()).getColumnVector());
        }
      }
      if(list.size() > 0) {
        assert mean != null;
        mean.timesEquals(1.0 / list.size());
View Full Code Here

Examples of edu.umd.hooka.alignment.hmm.ATable.plusEquals()

        ATable sum = null;
        while (values.hasNext()) {
          if (sum == null)
            sum = (ATable)((ATable)values.next().getContent()).clone();
          else
            sum.plusEquals((ATable)values.next().getContent());
        }
        pcc.setContent(sum);
        //        pcc.normalize();
        //        if (true) throw new RuntimeException("CHECK\n"+pcc.getContent());
      }
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.