Class DoubleDataSet3D

  • All Implemented Interfaces:
    DataSet, DataSet2D, DataSet3D, DataSetMetaData, EventSource, java.io.Serializable

    @Deprecated(since="11.1.4",
                forRemoval=true)
    public class DoubleDataSet3D
    extends AbstractDataSet3D<DoubleDataSet3D>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Not very efficient due to the nested array storage of the data, consider using the generic MultiDimDataSet or implement a custom data set. Will be removed in a future release.
    Implementation of a AbstractDataSet3D backed by arrays. The z-values are stored in a 2-dim array d[row][column] or d[y][x].
    Author:
    braeun
    See Also:
    Serialized Form
    • Constructor Detail

      • DoubleDataSet3D

        public DoubleDataSet3D​(java.lang.String name)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Parameters:
        name - of data set
      • DoubleDataSet3D

        public DoubleDataSet3D​(java.lang.String name,
                               double[] xValues,
                               double[] yValues,
                               double[][] zValues)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Parameters:
        name - of data set
        xValues - array containing new X coordinates
        yValues - array containing new X coordinates
        zValues - array containing new X coordinates
      • DoubleDataSet3D

        public DoubleDataSet3D​(java.lang.String name,
                               double[][] zValues)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Parameters:
        name - of data set
        zValues - array containing new X coordinates
      • DoubleDataSet3D

        public DoubleDataSet3D​(java.lang.String name,
                               int dimX,
                               int dimY)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Parameters:
        name - of data set
        dimX - horizontal binning dimension (equidistant model)
        dimY - vertical binning dimension (equidistant model)
    • Method Detail

      • clearData

        public DoubleDataSet3D clearData()
        Deprecated, for removal: This API element is subject to removal in a future version.
        clears all data points
        Returns:
        itself (fluent design)
      • getDataCount

        public int getDataCount​(int dimIndex)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: DataSet
        Get the number of data points in the data set for a specific dimension.
        Parameters:
        dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')
        Returns:
        the number of data points
      • getStyle

        public java.lang.String getStyle​(int index)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from class: AbstractDataSet
        A string representation of the CSS style associated with this specific DataSet data point. @see #getStyle()
        Specified by:
        getStyle in interface DataSet
        Overrides:
        getStyle in class AbstractDataSet<DoubleDataSet3D>
        Parameters:
        index - the index of the specific data point
        Returns:
        user-specific data set style description (ie. may be set by user)
      • get

        public final double get​(int dimIndex,
                                int index)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: DataSet
        Gets the x value of the data point with the index i
        Parameters:
        dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')
        index - data point index
        Returns:
        the x value
      • getX

        public double getX​(int i)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: DataSet2D
        Gets the x value of the data point with the index i
        Parameters:
        i - the data point index
        Returns:
        the x value
      • getValues

        public double[] getValues​(int dimIndex)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Parameters:
        dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')
        Returns:
        the x value array
      • getZ

        public double getZ​(int xIndex,
                           int yIndex)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: DataSet3D
        Returns Z coordinate for the specified data point.
        Parameters:
        xIndex - index of X coordinate
        yIndex - index of Y coordinate
        Returns:
        Z coordinate
      • getZValues

        public double[][] getZValues()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • set

        public void set​(double[] xValues,
                        double[] yValues,
                        double[][] zValues)
        Deprecated, for removal: This API element is subject to removal in a future version.
        overwrites/replaces data points with new coordinates
        Parameters:
        xValues - array containing new X coordinates
        yValues - array containing new X coordinates
        zValues - array containing new X coordinates
      • set

        public void set​(int xIndex,
                        int yIndex,
                        double z)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Parameters:
        xIndex - index of the to be modified point
        yIndex - index of the to be modified point
        z - new Z coordinate
      • set

        public void set​(int xIndex,
                        int yIndex,
                        double x,
                        double y,
                        double z)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setX

        public void setX​(int xIndex,
                         double x)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Parameters:
        xIndex - index of the to be modified point
        x - new X coordinate
      • setY

        public void setY​(int yIndex,
                         double y)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Parameters:
        yIndex - index of the to be modified point
        y - new Y coordinate
      • fillArray

        protected static void fillArray​(double[] array,
                                        int indexStart,
                                        int indexStop,
                                        double value)
        Deprecated, for removal: This API element is subject to removal in a future version.
        fast filling of an array with a default value
        initialize a smaller piece of the array and use the System.arraycopy call to fill in the rest of the array in an expanding binary fashion
        Parameters:
        array - to be initialized
        indexStart - the first index to be set (inclusive)
        indexStop - the last index to be set (exclusive)
        value - the value for each to be set element