Examples of DataList


Examples of org.uengine.ui.list.datamodel.DataList

    }
   
    public static DataList executeDetailInfoList(String sql, QueryCondition condition,
            String[] keys, Connection con)
      throws UEngineException {
    DataList dl = new DataList();
    DataMap dm = executeDetailInfo(sql, condition, keys, con);
    dl.add(dm);
    return dl;
    }
View Full Code Here

Examples of stallone.datasequence.DataList

     * Executes the clustering algorithm. Use setters or constructor to prepare input data.
     */
    @Override
    public void perform()
    {
        DataList centroids = new DataList();

        Iterator<IDoubleArray> it = data.iterator();

        if (datasize > 0)
        {
            // take first element as centroid
            centroids.add(it.next());
        }
        else
        {
            throw new RuntimeException("No first element .... aborting.");
        }


        IDoubleArray current;

        while(it.hasNext())
        {
            current = it.next();

            double[] d = calculateDistances(centroids, current, metric);
            int minIndex = minIndex(d);

            if (d[minIndex] >= dmin)
            {
                centroids.add(current);
                System.out.println(d[minIndex] + "\t" + centroids.size());
            }
        }

        this.clusterCenters = centroids;
        this.voronoiPartitioning = new VoronoiDiscretization(this.clusterCenters, this.metric);
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.