Interface GridDataSet

    • Method Detail

      • get

        double get​(int dimIndex,
                   int... indices)
        Parameters:
        dimIndex - dimension to retrieve
        indices - indices to retrieve, missing indices are treated as zero
        Returns:
        the value for the given indices
      • getGrid

        double getGrid​(int dimIndex,
                       int index)
        Returns the Grid Value along the specified Grid dimension
        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

        int getGridIndex​(int dimIndex,
                         double x)
        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
      • getGridValues

        default double[] getGridValues​(int dimIndex)
        Parameters:
        dimIndex - Dimension Index, smaller than getShape().size
        Returns:
        A double[getShape(dimIndex)] array containing all the grid values along the specified dimension
      • getShape

        int[] getShape()
        Returns:
        the shape of the grid of the data, e.g { 3, 4 } for a 3 x 4 matrix.
      • getNGrid

        default int getNGrid()
        Returns:
        the number of grid dimensions
      • getShape

        default int getShape​(int dimIndex)
        Parameters:
        dimIndex - the dimension to get the grid shape for
        Returns:
        the number of grid points in the given dimension