Examples of Points


Examples of ch.akuhn.org.ggobi.plugins.ggvis.Points

 
  @Test
  public void testIsomapSizeZero() {
    Isomap isomap = new NullIsomap(0);
    isomap.run();
    Points points = isomap.getPoints();
    assertEquals(0, points.size());
  }
View Full Code Here

Examples of ch.akuhn.org.ggobi.plugins.ggvis.Points

 
  @Test
  public void testIsomapSizeOne() {
    Isomap isomap = new NullIsomap(1);
    isomap.run();
    Points points = isomap.getPoints();
    assertEquals(1, points.size());
    assertEquals(0, points.x[0], Double.MIN_VALUE);
    assertEquals(0, points.y[0], Double.MIN_VALUE);
  }
View Full Code Here

Examples of ch.akuhn.org.ggobi.plugins.ggvis.Points

 
  @Test
  public void shouldWorkWith1Element() {
    Isomap isomap = new I(1, 3);
    isomap.run();
    Points points = isomap.getPoints();
    assertEquals(1, points.x.length);
  }
View Full Code Here

Examples of ch.akuhn.org.ggobi.plugins.ggvis.Points

  @Test
  public void shouldWorkWithLessElementsThanNeighbors() {
    int k = 6, less = 1;
    Isomap isomap = new I(k-less,k);
    isomap.run();
    Points points = isomap.getPoints();
    assertEquals(k-less, points.x.length);
  }
View Full Code Here

Examples of ch.akuhn.org.ggobi.plugins.ggvis.Points

  @Test
  public void shouldWorkWithMoreThanFewElements() {
    int few = 10, more = 2;
    Isomap isomap = new I(few+more, 3);
    isomap.run();
    Points points = isomap.getPoints();
    assertEquals(few+more, points.x.length);
  }
View Full Code Here

Examples of ch.akuhn.org.ggobi.plugins.ggvis.Points

    private MultidimensionalScalingListener fListener;
    private PrintStream fOut;
    private double fThreshold = 1e-6;

    public MultidimensionalScaling initialConfiguration(double[] x, double[] y) {
        fInitialConfiguration = new Points(x, y);
        return this;
    }
View Full Code Here

Examples of ch.akuhn.org.ggobi.plugins.ggvis.Points

            protected double dist(int i, int j) {
                return corr.get(i, j);
            }
        };
        isomap.run();
        Points points = isomap.getPoints();
        x = points.x;
        y = points.y;       
       
//        persistPoints();
//        loadPoints();
View Full Code Here

Examples of ch.akuhn.org.ggobi.plugins.ggvis.Points

     */
    public void constructDeeDimensionalEmbedding() {
        this.applyTauOperator();
        Eigenvalues eigen = Eigenvalues.of(graph).largest(2);
        eigen.run();
        points = new Points(n);
        for (int i = 0; i < n; i++) {
            points.x[i] = Math.sqrt(eigen.value[0]) * eigen.vector[0].get(i);
            points.y[i] = Math.sqrt(eigen.value[1]) * eigen.vector[1].get(i);
        }
    }
View Full Code Here

Examples of ch.akuhn.org.ggobi.plugins.ggvis.Points

        this.constructNeighborhoodGraph();
        this.computeShortestPathWithDijkstra();
        this.constructDeeDimensionalEmbedding();
      }
      else {
        points = new Points(n);
      }
      graph = null;
    }
View Full Code Here

Examples of com.rackspacecloud.blueflood.types.Points

        return globalJSON;
    }

    protected JSONArray transformDataToJSONArray(MetricData metricData, Set<MetricStat> filterStats)
            throws SerializationException {
        Points points = metricData.getData();
        final JSONArray data = new JSONArray();
        final Set<Map.Entry<Long, Points.Point>> dataPoints = points.getPoints().entrySet();
        for (Map.Entry<Long, Points.Point> point : dataPoints) {
            data.add(toJSON(point.getKey(), point.getValue(), metricData.getUnit(), filterStats));
        }

        return data;
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.