# SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.analysis.curvefit.interpolation.bivariate

## Interface BivariateGrid

• All Known Implementing Classes:
BivariateArrayGrid, BivariateRegularGrid

public interface BivariateGrid
A rectilinear (meaning that grid lines are not necessarily equally-spaced) bivariate grid of double values. The independent variables are labeled x and y, and the dependent variable is labeled z.
• ### Method Summary

All Methods
Modifier and Type Method and Description
int sizeX()
Define the size of the grid along the x-axis.
int sizeY()
Define the size of the grid along the y-axis.
double[] x()
Get the values of the independent variable xi.
double x(int i)
Get the value of xi, the i-th value of the independent variable x.
double[] y()
Get the values of the independent variable yj.
double y(int j)
Get the value of yj, the j-th value of the independent variable y.
double z(int i, int j)
Get the value of the dependent variable z at the given indices in the grid.
• ### Method Detail

• #### z

double z(int i,
int j)
Get the value of the dependent variable z at the given indices in the grid.
Parameters:
i - the index along the x-axis
j - the index along the y-axis
Returns:
z(xi, yj)
• #### x

double x(int i)
Get the value of xi, the i-th value of the independent variable x.
Parameters:
i - the index
Returns:
xi
• #### x

double[] x()
Get the values of the independent variable xi.
Returns:
xi's
• #### y

double y(int j)
Get the value of yj, the j-th value of the independent variable y.
Parameters:
j - the index
Returns:
yj
• #### y

double[] y()
Get the values of the independent variable yj.
Returns:
yj's
• #### sizeX

int sizeX()
Define the size of the grid along the x-axis. That is, the number of points along the x-axis.
Returns:
the size along the x-axis
• #### sizeY

int sizeY()
Define the size of the grid along the y-axis. That is, the number of points along the y-axis.
Returns:
the size along the y-axis