Package java.io

Examples of java.io.DataInputStream.readDouble()


            // Always respect this order pairOrder="m/z-int"
            double massOverCharge;
            double intensity;
            if ("64".equals(precision)) {
              massOverCharge = peakStream.readDouble();
              intensity = peakStream.readDouble();
            } else {
              massOverCharge = (double) peakStream.readFloat();
              intensity = (double) peakStream.readFloat();
            }
View Full Code Here


      for (int x = 0; x < width; ++x) {
        renderListener.setProgress(task, x+1, 0, width);
        for (int y = 0; y < height; ++y) {
          samples[(y*width+x)*3+0] = samples[(y*width+x)*3+0] * sa
              + in.readDouble() * sb;
          samples[(y*width+x)*3+1] = samples[(y*width+x)*3+1] * sa
              + in.readDouble() * sb;
          samples[(y*width+x)*3+2] = samples[(y*width+x)*3+2] * sa
              + in.readDouble() * sb;
          finalizePixel(x, y);
View Full Code Here

        renderListener.setProgress(task, x+1, 0, width);
        for (int y = 0; y < height; ++y) {
          samples[(y*width+x)*3+0] = samples[(y*width+x)*3+0] * sa
              + in.readDouble() * sb;
          samples[(y*width+x)*3+1] = samples[(y*width+x)*3+1] * sa
              + in.readDouble() * sb;
          samples[(y*width+x)*3+2] = samples[(y*width+x)*3+2] * sa
              + in.readDouble() * sb;
          finalizePixel(x, y);
        }
      }
View Full Code Here

          samples[(y*width+x)*3+0] = samples[(y*width+x)*3+0] * sa
              + in.readDouble() * sb;
          samples[(y*width+x)*3+1] = samples[(y*width+x)*3+1] * sa
              + in.readDouble() * sb;
          samples[(y*width+x)*3+2] = samples[(y*width+x)*3+2] * sa
              + in.readDouble() * sb;
          finalizePixel(x, y);
        }
      }
      logger.info("Render dump loaded");

View Full Code Here

          (int) (totalSamples / (renderTime / 1000.0)));

      for (int x = 0; x < width; ++x) {
        renderListener.setProgress(task, x+1, 0, width);
        for (int y = 0; y < height; ++y) {
          samples[(y*width+x)*3+0] = in.readDouble();
          samples[(y*width+x)*3+1] = in.readDouble();
          samples[(y*width+x)*3+2] = in.readDouble();
          finalizePixel(x, y);
        }
      }
View Full Code Here

      for (int x = 0; x < width; ++x) {
        renderListener.setProgress(task, x+1, 0, width);
        for (int y = 0; y < height; ++y) {
          samples[(y*width+x)*3+0] = in.readDouble();
          samples[(y*width+x)*3+1] = in.readDouble();
          samples[(y*width+x)*3+2] = in.readDouble();
          finalizePixel(x, y);
        }
      }
      logger.info("Render dump loaded");
View Full Code Here

      for (int x = 0; x < width; ++x) {
        renderListener.setProgress(task, x+1, 0, width);
        for (int y = 0; y < height; ++y) {
          samples[(y*width+x)*3+0] = in.readDouble();
          samples[(y*width+x)*3+1] = in.readDouble();
          samples[(y*width+x)*3+2] = in.readDouble();
          finalizePixel(x, y);
        }
      }
      logger.info("Render dump loaded");
    } catch (IOException e) {
View Full Code Here

                    Array.setFloat(data, index, dis.readFloat());
                    delegate.size++;
                }
            } else if (type == Double.TYPE) {
                for (int i = 0; i < count; i++, index++) {
                    Array.setDouble(data, index, dis.readDouble());
                    delegate.size++;
                }
            }
        }
        dis.close();
View Full Code Here

        ds = new DataInputStream(bs);
        switch (dFormat)
        {
          case TFormat.CF_DOUBLE:
            for (; i < len && i < m + b.length / fmtsiz; i++)
              data[i + offset] = (int) ds.readDouble();
            break;
          case TFormat.CF_FLOAT:
            for (; i < len && i < m + b.length / fmtsiz; i++)
              data[i + offset] = (int) ds.readFloat();
            break;
View Full Code Here

        ds = new DataInputStream(bs);
        switch (dFormat)
        {
          case TFormat.CF_DOUBLE:
            for (; i < len && i < m + b.length / fmtsiz; i++)
              data[i + offset] = (float) ds.readDouble();
            break;
          case TFormat.CF_FLOAT:
            for (; i < len && i < m + b.length / fmtsiz; i++)
              data[i + offset] = ds.readFloat();
            break;
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.