Examples of WindowFunction


Examples of com.facebook.presto.operator.window.WindowFunction

        private boolean isRowNumberFunction(WindowNode node)
        {
            checkArgument(node.getWindowFunctions().size() == 1);
            Symbol symbol = Iterables.getOnlyElement(node.getWindowFunctions().entrySet()).getKey();
            Signature signature = node.getSignatures().get(symbol);
            WindowFunction function = metadata.getExactFunction(signature).bindWindowFunction(ImmutableList.<Integer>of()).createWindowFunction();
            return function instanceof RowNumberFunction;
        }
View Full Code Here

Examples of edu.purdue.wind.WindowFunction

  if (args.length != 1) {
      System.out.println("usage: PlotWindow <function>");
      System.exit(1);
  }

  WindowFunction window = null;

  if (args[0].equals("hanning")) {
      window = new HanningWindow();
  } else {
      System.out.println("unrecognized window function '" + args[0] + "', must be one of: hanning");
      System.exit(1);
  }

  double[] data = new double[dataSize];
  for (int i = 0; i < data.length; i++) {
      data[i] = 1.0;
  }
  window.window(data, data.length);

  for (int i = 0; i < data.length; i++) {
      System.out.println("" + i + " " + data[i]);
  }
    }
View Full Code Here

Examples of edu.purdue.wind.WindowFunction

  if (args.length != 2 && args.length != 3) {
      System.err.println("usage: Spectrum <file.wav> <channel> [window]");
      System.exit(1);
  }

  WindowFunction window = null;
  if (args.length == 3) {
      if (args[2].equals("hanning")) {
    window = new HanningWindow();
      } else {
    System.err.println("Invalid window function.  I know: hanning");
View Full Code Here

Examples of org.broad.igv.track.WindowFunction

        float[] values = new float[nPts];
        for (int i = 0; i < nPts; i++) {
            values[i] = random.nextFloat();
        }

        WindowFunction wf = WindowFunction.percentile10;
        float v = ProcessingUtils.computeStat(values, wf);
        assertEquals(wf.getValue(), 0.1, v, 1.0e-2);

    }
View Full Code Here

Examples of org.broad.igv.track.WindowFunction

                                log.error("Number format exception in track line (ylinemark): " + nextLine);
                            }
                        } else if (key.equals("ylineonoff")) {
                            trackProperties.setDrawYLine(value.equals("on"));
                        } else if (key.equals("windowingfunction")) {
                            WindowFunction wf = WindowFunction.getWindowFunction(value);
                            trackProperties.setWindowingFunction(wf);
                        } else if (key.equals("maxfeaturewindow") || key.equals("featurevisibilitywindow") ||
                                key.equals("visibilitywindow")) {
                            try {
                                int windowSize = Integer.parseInt(value);
View Full Code Here

Examples of org.broad.igv.track.WindowFunction

        List<LocusScore> scores;

        if (zoom <= this.maxPrecomputedZoom) {
            // Window function == none => no windowing, so its not clear what to do.  For now use mean
            WindowFunction wf = (windowFunction == WindowFunction.none ? WindowFunction.mean : windowFunction);

            List<TDFTile> tiles = null;
            if (querySeq.equals(Globals.CHR_ALL) && !isChrOrderValid()) {
                TDFTile wgTile = reader.getWholeGenomeTile(genome, wf);
                tiles = Arrays.asList(wgTile);
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.