Class TransposedDataSet.TransposedDataSet3D

    • Method Detail

      • getDataCount

        public int getDataCount()
        Description copied from interface: DataSet
        Get the number of data points in the data set. The default implementation is the number of points in the highest dimension.
        Specified by:
        getDataCount in interface DataSet
        Returns:
        the number of data points
      • getXIndex

        public int getXIndex​(double x)
        Description copied from interface: DataSet2D
        Gets the index of the data point closest to the given x coordinate. If the x coordinate lies outside the range of the data set, the index of the first/last point is returned.
        Specified by:
        getXIndex in interface DataSet2D
        Parameters:
        x - the x position of the data point
        Returns:
        the index of the data point
      • getYIndex

        public int getYIndex​(double y)
        Description copied from interface: DataSet2D
        Gets the first index of the data point closest to the given y coordinate. If the y coordinate lies outside the range of the data set, the index of the first/last point is returned.
        Specified by:
        getYIndex in interface DataSet2D
        Parameters:
        y - the y position of the data point
        Returns:
        the index of the data point
      • getZ

        public double getZ​(int xIndex,
                           int yIndex)
        Description copied from interface: DataSet3D
        Returns Z coordinate for the specified data point.
        Specified by:
        getZ in interface DataSet3D
        Parameters:
        xIndex - index of X coordinate
        yIndex - index of Y coordinate
        Returns:
        Z coordinate
      • get

        public double get​(int dimIndex,
                          int index)
        Description copied from interface: DataSet
        Gets the x value of the data point with the index i
        Specified by:
        get in interface DataSet
        Overrides:
        get in class TransposedDataSet
        Parameters:
        dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')
        index - data point index
        Returns:
        the x value