Interface MultivariateGrid

  • All Known Implementing Classes:
    MultivariateArrayGrid, MultivariateRegularGrid

    public interface MultivariateGrid
    A multivariate rectilinear (not necessarily uniform) grid of double values. The independent variables are labeled xi and the dependent variable is y. Each independent variable adds another dimension to the grid.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int dimension()
      Get the total number of dimensions of the grid.
      int size​(int i)
      Get the size of the grid in the given dimension xi.
      double[] x​(int i)
      Get all the values of the independent variable xi as an array.
      double x​(int i, int j)
      Get the value of the independent variable xi at the given index.
      double y​(int... indices)
      Get the value of the dependent variable y at the given indices in the grid.
    • Method Detail

      • y

        double y​(int... indices)
        Get the value of the dependent variable y at the given indices in the grid.
        Parameters:
        indices - the indices of the independent variables in the grid
        Returns:
        \(y(\mathbf{x})\), the value of the dependent variable at \(\mathbf{x}\)
      • x

        double x​(int i,
                 int j)
        Get the value of the independent variable xi at the given index.
        Parameters:
        i - the dimension index of the independent variable xi
        j - the index of the value in the specified dimension xi
        Returns:
        \(x_i_j\)
      • x

        double[] x​(int i)
        Get all the values of the independent variable xi as an array.
        Parameters:
        i - the dimension index of the independent variable xi
        Returns:
        \(x_i\)'s
      • size

        int size​(int i)
        Get the size of the grid in the given dimension xi.
        Parameters:
        i - the dimension index of the independent variable xi
        Returns:
        the size of the dimension
      • dimension

        int dimension()
        Get the total number of dimensions of the grid.
        Returns:
        the number of dimensions