Examples of NDimPoint


Examples of me.uits.aiphial.general.dataStore.NDimPoint

        LUV[][] array = new LUV[height][width];

        for (Region cluster : clusters)
        {
            NDimPoint cl = cluster.getBasinOfAttraction();
            LUV cp = new LUV(cl.getCoord(2), cl.getCoord(3), cl.getCoord(4));

            for (LuvPoint lp : cluster)
            {
                array[lp.getY()][lp.getX()] = cp;
            }
View Full Code Here

Examples of me.uits.aiphial.general.dataStore.NDimPoint

        // TODO: it is a very big overhead to use asList to compute elem count
        float count = !this.progressListeners.isEmpty()?dataStore.asList().size():Float.NaN;
       
        for (T nDimPoint : dataStore)
        {
            NDimPoint calkBofA = calkBofA(nDimPoint);
                     
            Bof<T> bof = resultStore.addOrGet(new Bof<T>(calkBofA));
            bof.points.add(nDimPoint);

            fireProgressListeners(++pc/count * 0.95f);
 
View Full Code Here

Examples of me.uits.aiphial.general.dataStore.NDimPoint

    {

        int i = 1000;


        NDimPoint shiftedPoint = nDimPoint;
        do
        {
           
          
            nDimPoint = shiftedPoint;
View Full Code Here

Examples of me.uits.aiphial.general.dataStore.NDimPoint

        while (!tempStore.isEmpty())
        {

           

            NDimPoint nDimPoint = tempStore.getNearest(SimpleNDimPoint.getZeroPoint(tempStore.getDim()));

            Collection<? extends T> movingpoints = tempStore.removeWithinWindow(samePoint,nDimPoint);



            NDimPoint calkBofA = calkBofA(nDimPoint);

            //NDimPoint calkBofA = nDimPoint; // !!!!!!!!!!!!!!!!!!!!

            Collection<Bof<T>> withinWindow = resultStore.getWithinWindow(window,calkBofA);
View Full Code Here

Examples of me.uits.aiphial.general.dataStore.NDimPoint

     * @param collection of given points
     * @return dimension of the bounding hyper-parallelepiped
     */
    public static  Float[] getSpaceSize(Collection<? extends NDimPoint> l)
    {
        final NDimPoint firstpoint = l.iterator().next();
        int dim = firstpoint.getDimensions();
        MinMax[] mms = new MinMax[dim];
        for (int i = 0; i < dim; i++)
        {
            mms[i] = new MinMax();
            mms[i].max = mms[i].min = firstpoint.getCoord(i);
        }
        for (NDimPoint point : l)
        {
            for (int i = 0; i < dim; i++)
            {
View Full Code Here

Examples of me.uits.aiphial.general.dataStore.NDimPoint

        Float[] ar = new Float[]
        {
            1f, 2f, 3f, 4f, 5f
        };

        NDimPoint ndp = new SimpleNDimPoint(ar);

        ds.addOrGet(ndp);

        NDimPoint nearest = ds.getNearest(new SimpleNDimPoint(8f, 0f, 5f, 9f, 5f));

        assertEquals(ndp,nearest);

        System.out.println();
View Full Code Here

Examples of me.uits.aiphial.general.dataStore.NDimPoint

        for (int i = 0; i < clusters.size(); i++) {

            Cluster<? extends NDimPoint> cluster = clusters.get(i);
            Color color = colors.get(i);
            NDimPoint center = cluster.getBasinOfAttraction();
            for (NDimPoint nDimPoint : cluster) {
                td.setColor(color);

                Shape l = new Line2D.Double(
                        nDimPoint.getCoord(0), nDimPoint.getCoord(1),
                        center.getCoord(0), center.getCoord(1)
                );

                Shape l2 = new Ellipse2D.Double(
                        nDimPoint.getCoord(0) - rad / 2, nDimPoint.getCoord(1) - rad / 2,
                        rad, rad
View Full Code Here

Examples of me.uits.aiphial.general.dataStore.NDimPoint

        List<NDimPoint> result = new ArrayList<NDimPoint>(totalPoints);

        int pointsPerCenter = totalPoints / centers;

        for (int i = 0; i < centers; i++) {
            NDimPoint center = genCenter();
            result.add(center);

            for (int j = 0; j < pointsPerCenter; j++) {

                result.add(genPoint(center));
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.