Class TransposedDataSet.TransposedGridDataSet

    • Method Detail

      • getIndex

        public int getIndex​(int dimIndex,
                            double... value)
        Description copied from interface: DataSet
        Gets the index of the data point closest to the given 'value' coordinate. The index returned may be less then zero or larger the the number of data points in the data set, if the x coordinate lies outside the range of the data set.
        Specified by:
        getIndex in interface DataSet
        Overrides:
        getIndex in class TransposedDataSet
        Parameters:
        dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')
        value - the data point coordinates to search for
        Returns:
        the index of the data point
      • getShape

        public int[] getShape()
        Specified by:
        getShape in interface GridDataSet
        Returns:
        the shape of the grid of the data, e.g { 3, 4 } for a 3 x 4 matrix.
      • getGrid

        public double getGrid​(int dimIndex,
                              int index)
        Description copied from interface: GridDataSet
        Returns the Grid Value along the specified Grid dimension
        Specified by:
        getGrid in interface GridDataSet
        Parameters:
        dimIndex - Dimension Index, smaller than getShape().size
        index - Index along the specified dimension, smaller than getShape(dimIndex)
        Returns:
        the value for the specified index on the grid along the specified dimension
      • getGridIndex

        public int getGridIndex​(int dimIndex,
                                double x)
        Specified by:
        getGridIndex in interface GridDataSet
        Parameters:
        dimIndex - Dimension index, smaller than getShape().size
        x - value along the specified axis to get the next index for
        Returns:
        index which corresponds to the given value
      • get

        public double get​(int dimIndex,
                          int... indices)
        Specified by:
        get in interface GridDataSet
        Parameters:
        dimIndex - dimension to retrieve
        indices - indices to retrieve, missing indices are treated as zero
        Returns:
        the value for the given indices
      • getValue

        public double getValue​(int dimIndex,
                               double... x)
        Description copied from interface: DataSet
        Returns the value along the 'dimIndex' axis of a point specified by the x coordinate.
        Specified by:
        getValue in interface DataSet
        Overrides:
        getValue in class TransposedDataSet
        Parameters:
        dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')
        x - horizontal 'dimIndex' coordinate
        Returns:
        'dimIndex' value