Examples of VectorSet


Examples of com.guokr.simbase.store.VectorSet

        }
        if (funcscore.equals("jensenshannon")) {
            scoring = new JensenShannonDivergence();
        }

        VectorSet source = vectorSets.get(vkeySource);
        VectorSet target = vectorSets.get(vkeyTarget);
        Recommendation rec = new Recommendation(source, target, scoring, context.getInt("maxlimits"));

        String rkey = rkey(vkeySource, vkeyTarget);
        this.recommendations.put(rkey, rec);

        source.addListener(rec);
        if (target != source) {
            target.addListener(rec);
        }

        if (source.type().equals("dense")) {
            for (int srcVecId : source.ids()) {
                rec.create(srcVecId);
                float[] vector = source.get(srcVecId);
                target.rescore(source.key(), srcVecId, vector, rec);
            }
        } else {
            for (int srcVecId : source.ids()) {
                rec.create(srcVecId);
                int[] vector = source._get(srcVecId);
                target.rescore(source.key(), srcVecId, vector, rec);
            }
        }
    }
View Full Code Here

Examples of org.apache.tools.ant.util.VectorSet

     *                           targets, or if a named target does not exist.
     * @since Ant 1.6.3
     */
    public final Vector topoSort(String[] root, Hashtable targetTable,
                                 boolean returnAll) throws BuildException {
        Vector ret = new VectorSet();
        Hashtable state = new Hashtable();
        Stack visiting = new Stack();

        // We first run a DFS based sort using each root as a starting node.
        // This creates the minimum sequence of Targets to the root node(s).
View Full Code Here

Examples of org.apache.tools.ant.util.VectorSet

            }
            if (excludes == null) {
                excludes = new String[0];
            }

            filesIncluded = new VectorSet();
            filesNotIncluded = new Vector();
            filesExcluded = new VectorSet();
            dirsIncluded = new VectorSet();
            dirsNotIncluded = new Vector();
            dirsExcluded = new VectorSet();

            try {
                String cwd = ftp.printWorkingDirectory();
                // always start from the current ftp working dir
                forceRemoteSensitivityCheck();
View Full Code Here

Examples of org.apache.tools.ant.util.VectorSet

            }
            if (excludes == null) {
                excludes = new String[0];
            }

            filesIncluded = new VectorSet();
            filesNotIncluded = new Vector();
            filesExcluded = new VectorSet();
            dirsIncluded = new VectorSet();
            dirsNotIncluded = new Vector();
            dirsExcluded = new VectorSet();

            try {
                String cwd = ftp.printWorkingDirectory();
                // always start from the current ftp working dir
                forceRemoteSensitivityCheck();
View Full Code Here

Examples of org.apache.tools.ant.util.VectorSet

            }
            if (excludes == null) {
                excludes = new String[0];
            }

            filesIncluded = new VectorSet();
            filesNotIncluded = new Vector();
            filesExcluded = new VectorSet();
            dirsIncluded = new VectorSet();
            dirsNotIncluded = new Vector();
            dirsExcluded = new VectorSet();

            try {
                String cwd = ftp.printWorkingDirectory();
                // always start from the current ftp working dir
                forceRemoteSensitivityCheck();
View Full Code Here

Examples of org.apache.tools.ant.util.VectorSet

            }
            if (excludes == null) {
                excludes = new String[0];
            }

            filesIncluded = new VectorSet();
            filesNotIncluded = new Vector();
            filesExcluded = new VectorSet();
            dirsIncluded = new VectorSet();
            dirsNotIncluded = new Vector();
            dirsExcluded = new VectorSet();

            try {
                String cwd = ftp.printWorkingDirectory();
                // always start from the current ftp working dir
                forceRemoteSensitivityCheck();
View Full Code Here

Examples of org.apache.tools.ant.util.VectorSet

    /**
     * Clear the result caches for a scan.
     */
    protected synchronized void clearResults() {
        filesIncluded    = new VectorSet();
        filesNotIncluded = new VectorSet();
        filesExcluded    = new VectorSet();
        filesDeselected  = new VectorSet();
        dirsIncluded     = new VectorSet();
        dirsNotIncluded  = new VectorSet();
        dirsExcluded     = new VectorSet();
        dirsDeselected   = new VectorSet();
        everythingIncluded = (basedir != null);
        scannedDirs.clear();
        notFollowedSymlinks.clear();
    }
View Full Code Here

Examples of org.apache.tools.ant.util.VectorSet

            }
            if (excludes == null) {
                excludes = new String[0];
            }

            filesIncluded = new VectorSet();
            filesNotIncluded = new Vector();
            filesExcluded = new VectorSet();
            dirsIncluded = new VectorSet();
            dirsNotIncluded = new Vector();
            dirsExcluded = new VectorSet();

            try {
                String cwd = ftp.printWorkingDirectory();
                // always start from the current ftp working dir
                forceRemoteSensitivityCheck();
View Full Code Here

Examples of org.apache.tools.ant.util.VectorSet

            }
            if (excludes == null) {
                excludes = new String[0];
            }

            filesIncluded = new VectorSet();
            filesNotIncluded = new Vector();
            filesExcluded = new VectorSet();
            dirsIncluded = new VectorSet();
            dirsNotIncluded = new Vector();
            dirsExcluded = new VectorSet();

            try {
                String cwd = ftp.printWorkingDirectory();
                // always start from the current ftp working dir
                forceRemoteSensitivityCheck();
View Full Code Here

Examples of org.apache.tools.ant.util.VectorSet

    private synchronized String replaceTokens(String line, String parent)
        throws BuildException {
        String beginToken = getBeginToken();
        String endToken = getEndToken();
        if (recurseDepth == 0) {
            passedTokens = new VectorSet();
        }
        recurseDepth++;
        if (passedTokens.contains(parent) && !duplicateToken) {
            duplicateToken = true;
            System.out.println(
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.