Examples of apply()


Examples of ch.akuhn.graph.DijkstraAlgorithm2.apply()

        for (int i = 0; i < n; i++) {
            /* NB: it is safe to update graph and use it for distances
             * in the same time since we only lookup the distances of
             * directly connected nodes, which are not updated.
             */
            double[] cost = dijsktra.apply(g, g.nodes[i], graph);
            for (int j = 0; j < n; j++) graph.put(i,j, cost[j]);
        }
    }
   
    public boolean[][] getEdges() {
View Full Code Here

Examples of ch.akuhn.matrix.DenseMatrix.apply()

        return mds.points();
    }

    public MultidimensionalScaling similarities(double[][] matrix) {
      DenseMatrix d = SymmetricMatrix.fromSquare(matrix);
        d.apply(Function.COSINE_TO_DISSIMILARITY);
        fdistances = d;
        return this;
    }

    public MultidimensionalScaling verbose() {
View Full Code Here

Examples of ch.uzh.ifi.seal.changedistiller.treedifferencing.operation.InsertOperation.apply()

                TreeEditOperation insert = new InsertOperation(w, z, k);
                fEditScript.add(insert);

                // iii. Add (w, x) to M' and apply INS((w, a, v(x)), z, k) to T1
                addMatchToPrimes(x, w);
                insert.apply();

                // (c) else if x is not a root (x has a partner in M')
            } else if (!x.isRoot()) {
                // i.
                // Let w be the partner of x in M'
View Full Code Here

Examples of ch.uzh.ifi.seal.changedistiller.treedifferencing.operation.MoveOperation.apply()

                    int k = findPosition(x);
                    // C. Append MOV(w, z, k) to E
                    TreeEditOperation move = new MoveOperation(w, x, z, k);
                    fEditScript.add(move);
                    // D. Apply MOV(w, z, k) to T1
                    move.apply();
                }
            }
            // (d) AlignChildren(w, x)
            if (!w.isLeaf()) {
                alignChildren(w, x);
View Full Code Here

Examples of ch.uzh.ifi.seal.changedistiller.treedifferencing.operation.UpdateOperation.apply()

                if (!equals) {
                    // A. Append UPD(w, v(x)) to E
                    TreeEditOperation update = new UpdateOperation(w, x, v(x));
                    fEditScript.add(update);
                    // B. Apply UPD(w, v(x)) to T1
                    update.apply();
                }
                // iii. If (y, v) not in M'
                if (!matchContains(v, y, fMatchPrime)) {
                    // A. Let z be the partner of y in M'
                    // Node z /*T1*/= (Node) fRightToLeftMatchPrime.get(y); already executed
View Full Code Here

Examples of cl.alejo.jcsim.csim.circuit.Circuit.apply()

            if (button_modiff == MODIF_ALT)
              circuit.delete(_iconTarget);
            else if (button_modiff == MODIF_SHIFT)
              _iconTarget.rotate(x, y);
            else
              circuit.apply(x, y);
          }
        }
      }

      // Recalculamos las barras cuando hemos hecho un
View Full Code Here

Examples of cl.alejo.jcsim.csim.gates.IconGate.apply()

   *            int Posicion y
   */
  public void apply(int x, int y) {
    IconGate icon = findIcon(x, y);
    if (icon != null)
      icon.apply(x, y);
  }

  /**
   * Insert the method's description here. Creation date: (03/04/01 17:27:06)
   *
 
View Full Code Here

Examples of codechicken.lib.vec.Vector3.apply()

            for (RedstoneTorchModel m : torches)
                if (m.on && rand.nextInt(torches.size()) == 0)
                {
                    Vector3 pos = new Vector3(rand.nextFloat(), rand.nextFloat(), rand.nextFloat()).add(-0.5).multiply(0.05, 0.1, 0.05);
                    pos.add(m.lightPos);// height
                    pos.apply(part.rotationT()).add(part.x(), part.y(), part.z());
                    part.world().spawnParticle("reddust", pos.x, pos.y, pos.z, 0, 0, 0);
                }
        }
    }
View Full Code Here

Examples of com.adito.policyframework.forms.AbstractResourceForm.apply()

     * @throws Exception
     */
    public ActionForward commit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
                    throws Exception {
        AbstractResourceForm resourceForm = (AbstractResourceForm) form;
        resourceForm.apply();
        Resource resource = resourceForm.getResource();
        if(resourceForm.getEditing()) {
            resource.getResourceType().updateResource(resource, getSessionInfo(request));
        }
        else {
View Full Code Here

Examples of com.adito.properties.forms.PropertyProfileForm.apply()

                            PolicyConstants.PERM_CREATE_EDIT_AND_ASSIGN, PolicyConstants.PERM_EDIT_AND_ASSIGN,
                            PolicyConstants.PERM_ASSIGN }, request);
        } else {
            PolicyUtil.checkPermission(PolicyConstants.PERSONAL_PROFILE_RESOURCE_TYPE, PolicyConstants.PERM_MAINTAIN, request);
        }
        profileForm.apply();
        if (profileForm.getEditing()) {
            PolicyDatabaseFactory.getInstance().attachResourceToPolicyList(profile, profileForm.getSelectedPoliciesList(),
                getSessionInfo(request));
            profile.getResourceType().updateResource(profile, getSessionInfo(request));
        } else {
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.