Package stallone.api.discretization

Examples of stallone.api.discretization.IDiscretization


        // first clustering
        _clusterMethodFull.setInput(_data);
        _clusterMethodFull.perform();
        IDataSequence centers = _clusterMethodFull.getClusterCenters();
        // assignment
        IDiscretization assignment = _clusterMethodFull.getClusterAssignment();
        micro2macro = cluster.discretize(data, assignment);
        // define leaves
        int nClusters = _clusterMethodFull.getNumberOfClusters();
        for (int i=0; i<nClusters; i++)
        {
View Full Code Here


        // set input
        this.data = _data;
        this.clusterMethodLeaves = _clusterMethodLeaves; 
        this.metric = _metric;
        // first clustering
        IDiscretization voronoiDiscretization = discNew.voronoiDiscretization(_initcenters, _metric);
        micro2macro = cluster.discretize(_data, voronoiDiscretization);
        int nInitialClusters = _initcenters.size();
        IIntList[] leafIndexes = new IIntList[nInitialClusters];
        for (int i=0; i<leafIndexes.length; i++)
            leafIndexes[i] = intsNew.list(0);
View Full Code Here

        //System.out.println("N clusters before splitting: "+nClustersBeforeSplitting);
        //System.out.println("New clusters: "+nPieces);
        //System.out.println("Reassignment table: "+IntArrays.toString(reassign));

        // assignment
        IDiscretization assignment = this.clusterMethodLeaves.getClusterAssignment();
        IDataSequence centers = this.clusterMethodLeaves.getClusterCenters();
        IIntArray micro2macroLeaf = cluster.discretize(subset, assignment);
        // update global assignment
        for (int i=0; i<leaf.indexes.size(); i++)
        {
View Full Code Here

        // first clustering
        _clusterMethodFull.setInput(_data);
        _clusterMethodFull.perform();
        IDataSequence centers = _clusterMethodFull.getClusterCenters();
        // assignment
        IDiscretization assignment = _clusterMethodFull.getClusterAssignment();
        micro2macro = cluster.discretize(data, assignment);
        // define leaves
        int nClusters = _clusterMethodFull.getNumberOfClusters();
        for (int i=0; i<nClusters; i++)
        {
View Full Code Here

        // set input
        this.data = _data;
        this.clusterMethodLeaves = _clusterMethodLeaves; 
        this.metric = _metric;
        // first clustering
        IDiscretization voronoiDiscretization = discNew.voronoiDiscretization(_initcenters, _metric);
        micro2macro = cluster.discretize(_data, voronoiDiscretization);
        int nInitialClusters = _initcenters.size();
        IIntList[] leafIndexes = new IIntList[nInitialClusters];
        for (int i=0; i<leafIndexes.length; i++)
            leafIndexes[i] = intsNew.list(0);
View Full Code Here

        //System.out.println("N clusters before splitting: "+nClustersBeforeSplitting);
        //System.out.println("New clusters: "+nPieces);
        //System.out.println("Reassignment table: "+IntArrays.toString(reassign));

        // assignment
        IDiscretization assignment = this.clusterMethodLeaves.getClusterAssignment();
        IDataSequence centers = this.clusterMethodLeaves.getClusterCenters();
        IIntArray micro2macroLeaf = cluster.discretize(subset, assignment);
        // update global assignment
        for (int i=0; i<leaf.indexes.size(); i++)
        {
View Full Code Here

TOP

Related Classes of stallone.api.discretization.IDiscretization

Copyright © 2018 www.massapicom. 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.