Examples of DenseVectorSet


Examples of com.guokr.simbase.store.DenseVectorSet

        SimContext subcontext = context.getSub(type, vkey);
        float accumuFactor = subcontext.getFloat("accumuFactor");
        int sparseFactor = subcontext.getInt("sparseFactor");

        if (type.equals(DenseVectorSet.TYPE)) {
            this.vectorSets.put(vkey, new DenseVectorSet(vkey, this.base, accumuFactor, sparseFactor));
        } else if (type.equals(SparseVectorSet.TYPE)) {
            this.vectorSets.put(vkey, new SparseVectorSet(vkey, this.base, accumuFactor, sparseFactor));
        } else {
            throw new IllegalArgumentException("Wrong type of vector set in config!");
        }
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.