Examples of Series

  • org.apache.hadoop.chukwa.hicc.bean.Series
  • org.dussan.vaadin.dcharts.options.Series
  • org.eclipse.birt.chart.model.component.Series
  • org.jfree.data.general.Series
    Base class representing a data series. Subclasses are left to implement the actual data structures.

    The series has two properties ("Key" and "Description") for which you can register a PropertyChangeListener.

    You can also register a {@link SeriesChangeListener} to receive notificationof changes to the series data.

  • org.one2team.highcharts.shared.Series
  • org.openfaces.component.chart.Series
    @author Ekaterina Shliakhovetskaya
  • org.opengis.metadata.citation.Series
    eospatial.org/standards/as#01-111">ISO 19115 @author Martin Desruisseaux (IRD) @since GeoAPI 1.0
  • org.restlet.util.Series
    Modifiable list of entries with many helper methods. Note that this class uses the Parameter class as the template type. This allows you to use an instance of this class as any other java.util.List, in particular all the helper methods in java.util.Collections. @author Jerome Louvel @param < E> The contained type @see org.restlet.data.Parameter @see java.util.Collections @see java.util.List
  • org.wicketstuff.flot.Series
  • pass.Series

  • Examples of com.xeiam.xchart.Series

        double margin = Utils.getTickStartOffset(workingSpace, tickSpace); // in plot space double gridStep = getGridStepForDecimal(tickSpace);

        // get all categories
        List<Object> categories = new ArrayList<Object>();

        Series firstSeries = chartPainter.getAxisPair().getSeriesMap().values().iterator().next(); // we use this to check all series have the exact same length and values
        for (Series series : chartPainter.getAxisPair().getSeriesMap().values()) {

          Iterator<?> firstSeriesItr = firstSeries.getXData().iterator();
          Iterator<?> xItr = series.getXData().iterator();
          while (xItr.hasNext()) {

            // check matching
            Object next = xItr.next();
    View Full Code Here

    Examples of com.xeiam.xchart.Series

          // System.out.println(date.toString());
          xData.add(date);
          yData.add(Math.random() * i);
        }

        Series series = chart.addSeries("blah", xData, yData);
        series.setMarker(SeriesMarker.NONE);

        return chart;

      }
    View Full Code Here

    Examples of com.xeiam.xchart.Series

            e.printStackTrace();
          }
          xData.add(date);
          yData.add(-1 * 0.00000001 * ((random.nextInt(i) + 1)));
        }
        Series series = chart.addSeries("Model 77", xData, yData);
        series.setLineColor(SeriesColor.RED);
        chart.getStyleManager().setPlotGridLinesVisible(false);
        chart.getStyleManager().setBarFilled(false);

        return chart;
      }
    View Full Code Here

    Examples of com.xeiam.xchart.Series

        chart.getStyleManager().setAxisTickLabelsFont(new Font(Font.SERIF, Font.PLAIN, 11));
        chart.getStyleManager().setDatePattern("dd-MMM");
        chart.getStyleManager().setDecimalPattern("#0.000");
        chart.getStyleManager().setLocale(Locale.GERMAN);

        Series series = chart.addSeries("Fake Data", xData, yData);
        series.setLineColor(SeriesColor.BLUE);
        series.setMarkerColor(Color.ORANGE);
        series.setMarker(SeriesMarker.CIRCLE);
        series.setLineStyle(SeriesLineStyle.SOLID);

        return chart;
      }
    View Full Code Here

    Examples of net.sf.doodleproject.numerics4j.series.Series

            } else if (x >= (a + 1.0)) {
                // use regularizedGammaQ because it should converge faster in this
                // case.
                ret = 1.0 - regularizedGammaQ(a, x);
            } else {
                Series s = new Series() {

                    private double term = 1.0 / x;

                    protected double getTerm(int n, double x) {
                        term = x / (a + n) * term;
                        return term;
                    }
                };
                ret = s.evaluate(x)
                    * Math.exp(-x + (a * Math.log(x)) - logGamma(a));
            }

            return ret;
        }
    View Full Code Here

    Examples of org.apache.hadoop.chukwa.hicc.bean.Series

        seriesName.append(":");
        seriesName.append(family);
        seriesName.append(":");
        seriesName.append(column);

        Series series = new Series(seriesName.toString());
        try {
          HTableInterface table = pool.getTable(tableName);
          Calendar c = Calendar.getInstance();
          c.setTimeInMillis(startTime);
          c.set(Calendar.MINUTE, 0);
          c.set(Calendar.SECOND, 0);
          c.set(Calendar.MILLISECOND, 0);
          String startRow = c.getTimeInMillis()+rkey;
          Scan scan = new Scan();
          scan.addColumn(family.getBytes(), column.getBytes());
          scan.setStartRow(startRow.getBytes());
          scan.setTimeRange(startTime, endTime);
          scan.setMaxVersions();
          if(filterByRowKey) {
            RowFilter rf = new RowFilter(CompareOp.EQUAL, new
                RegexStringComparator("[0-9]+-"+rkey+"$"));
            scan.setFilter(rf);
          }
          ResultScanner results = table.getScanner(scan);
          Iterator<Result> it = results.iterator();
          // TODO: Apply discrete wavelet transformation to limit the output
          // size to 1000 data points for graphing optimization. (i.e jwave)
          while(it.hasNext()) {
            Result result = it.next();
            String temp = new String(result.getValue(family.getBytes(), column.getBytes()));
            double value = Double.parseDouble(temp);
            // TODO: Pig Store function does not honor HBase timestamp, hence need to parse rowKey for timestamp.
            String buf = new String(result.getRow());
            Long timestamp = Long.parseLong(buf.split("-")[0]);
            // If Pig Store function can honor HBase timestamp, use the following line is better.
            // series.add(result.getCellValue().getTimestamp(), value);
            series.add(timestamp, value);
          }
          results.close();
          table.close();
        } catch(Exception e) {
          log.error(ExceptionUtil.getStackTrace(e));
    View Full Code Here

    Examples of org.apache.hadoop.chukwa.hicc.bean.Series

      @Path("series/{table}/{family}/{column}/rowkey/{rkey}")
      @Produces("application/json")
      public String getSeries(@Context HttpServletRequest request, @PathParam("table") String table, @PathParam("family") String family, @PathParam("column") String column, @PathParam("rkey") String rkey, @QueryParam("start") String start, @QueryParam("end") String end) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
        String buffer = "";
        Series series;
        long startTime = 0;
        long endTime = 0;
        TimeHandler time = new TimeHandler(request);
        try {
          if(start!=null) {
            startTime = sdf.parse(start).getTime();
          } else {
            startTime = time.getStartTime();
          }
          if(end!=null) {
            endTime = sdf.parse(end).getTime();
          } else {
            endTime = time.getEndTime();
          }
          if(rkey!=null) {
            series = ChukwaHBaseStore.getSeries(table, rkey, family, column, startTime, endTime, true);
            buffer = series.toString();
          } else {
            throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST)
                .entity("No row key defined.").build());
          }
        } catch (ParseException e) {
    View Full Code Here

    Examples of org.apache.hadoop.chukwa.hicc.bean.Series

          if(skey!=null) {
              HttpSession session = request.getSession();
              String[] rkeys = (session.getAttribute(skey).toString()).split(",");
              JSONArray seriesList = new JSONArray();
              for(String rowKey : rkeys) {
                Series output = ChukwaHBaseStore.getSeries(table, rowKey, family, qualifier, startTime, endTime, true);
                seriesList.add(output.toJSONObject());
              }
              buffer = seriesList.toString();
          } else {
            throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST)
                .entity("No session attribute key defined.").build());
    View Full Code Here

    Examples of org.apache.hadoop.chukwa.hicc.bean.Series

      @Path("series/{table}/{family}/{column}/rowkey/{rkey}")
      @Produces("application/json")
      public String getSeries(@Context HttpServletRequest request, @PathParam("table") String table, @PathParam("family") String family, @PathParam("column") String column, @PathParam("rkey") String rkey, @QueryParam("start") String start, @QueryParam("end") String end) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
        String buffer = "";
        Series series;
        long startTime = 0;
        long endTime = 0;
        TimeHandler time = new TimeHandler(request);
        try {
          if(start!=null) {
            startTime = sdf.parse(start).getTime();
          } else {
            startTime = time.getStartTime();
          }
          if(end!=null) {
            endTime = sdf.parse(end).getTime();
          } else {
            endTime = time.getEndTime();
          }
          if(rkey!=null) {
            series = ChukwaHBaseStore.getSeries(table, rkey, family, column, startTime, endTime, true);
            buffer = series.toString();
          } else {
            throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST)
                .entity("No row key defined.").build());
          }
        } catch (ParseException e) {
    View Full Code Here

    Examples of org.apache.hadoop.chukwa.hicc.bean.Series

              JSONArray seriesList = new JSONArray();
              for(String rowKey : rkeys) {
              if (rowKey == null || rowKey.equals("")) {
                continue;
              }
                Series output = ChukwaHBaseStore.getSeries(table, rowKey, family, qualifier, startTime, endTime, true);
                seriesList.add(output.toJSONObject());
              }
              buffer = seriesList.toString();
          } else {
            throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST)
                .entity("No session attribute key defined.").build());
    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.