Documentation of 'org.jplot2d.data.DoubleDataBuffer' Java class
DoubleDataBuffer
org.jplot2d.data

Class DoubleDataBuffer

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      double[] calcMinMax(int w, int h)
      Calculate the min and max value in the given rectangle for this data buffer, and return them in a double array.
      double countValid(int w, int h)
      Count the number of valid values in the given rectangle for this data buffer.
      abstract double get(int x, int y) 
      byte getByte(int x, int y)
      Returns the sample for the pixel located at (x,y) as a double.
      double getDouble(int x, int y)
      Returns the sample for the pixel located at (x,y) as a double.
      float getFloat(int x, int y)
      Returns the sample for the pixel located at (x,y) as a double.
      int getInt(int x, int y)
      Returns the sample for the pixel located at (x,y) as a double.
      short getShort(int x, int y)
      Returns the sample for the pixel located at (x,y) as a double.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getByte

        public byte getByte(int x,
                            int y)
        Description copied from class: ImageDataBuffer
        Returns the sample for the pixel located at (x,y) as a double.
        Specified by:
        getByte in class ImageDataBuffer
        Parameters:
        x - The X coordinate of the pixel location
        y - The Y coordinate of the pixel location
        Returns:
        the sample for the specified pixel
      • getShort

        public short getShort(int x,
                              int y)
        Description copied from class: ImageDataBuffer
        Returns the sample for the pixel located at (x,y) as a double.
        Specified by:
        getShort in class ImageDataBuffer
        Parameters:
        x - The X coordinate of the pixel location
        y - The Y coordinate of the pixel location
        Returns:
        the sample for the specified pixel
      • getInt

        public int getInt(int x,
                          int y)
        Description copied from class: ImageDataBuffer
        Returns the sample for the pixel located at (x,y) as a double.
        Specified by:
        getInt in class ImageDataBuffer
        Parameters:
        x - The X coordinate of the pixel location
        y - The Y coordinate of the pixel location
        Returns:
        the sample for the specified pixel
      • getFloat

        public float getFloat(int x,
                              int y)
        Description copied from class: ImageDataBuffer
        Returns the sample for the pixel located at (x,y) as a double.
        Specified by:
        getFloat in class ImageDataBuffer
        Parameters:
        x - The X coordinate of the pixel location
        y - The Y coordinate of the pixel location
        Returns:
        the sample for the specified pixel
      • getDouble

        public double getDouble(int x,
                                int y)
        Description copied from class: ImageDataBuffer
        Returns the sample for the pixel located at (x,y) as a double.
        Specified by:
        getDouble in class ImageDataBuffer
        Parameters:
        x - The X coordinate of the pixel location
        y - The Y coordinate of the pixel location
        Returns:
        the sample for the specified pixel
      • get

        public abstract double get(int x,
                                   int y)
      • countValid

        public double countValid(int w,
                                 int h)
        Description copied from class: ImageDataBuffer
        Count the number of valid values in the given rectangle for this data buffer. For double and float data, NaN, POSITIVE_INFINITY and NEGATIVE_INFINITY are considered as invalid.
        Specified by:
        countValid in class ImageDataBuffer
        Parameters:
        w - the width of the given rectangle
        h - the height of the given rectangle
        Returns:
        the number of valid values
      • calcMinMax

        public double[] calcMinMax(int w,
                                   int h)
        Description copied from class: ImageDataBuffer
        Calculate the min and max value in the given rectangle for this data buffer, and return them in a double array. For double and float data, NaN, POSITIVE_INFINITY and NEGATIVE_INFINITY are considered as invalid and ignored.
        Specified by:
        calcMinMax in class ImageDataBuffer
        Parameters:
        w - the width of the given rectangle
        h - the height of the given rectangle
        Returns:
        the min and max values

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.