public class BivariateArrayGrid extends Object implements BivariateGrid
BivariateGrid, backed by arrays.| Constructor and Description |
|---|
BivariateArrayGrid(double[][] z,
double[] x,
double[] y)
Create a new grid with a given two-dimensional array of grid values, and values for grid line
positions along the x-axis and the y-axis.
|
| 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.
|
public BivariateArrayGrid(double[][] z,
double[] x,
double[] y)
z - the grid valuesx - the grid line positions along the x-axisy - the grid line positions along the y-axispublic double z(int i,
int j)
BivariateGridz in interface BivariateGridi - the index along the x-axisj - the index along the y-axispublic double[] x()
BivariateGridx in interface BivariateGridpublic double[] y()
BivariateGridy in interface BivariateGridpublic double x(int i)
BivariateGridx in interface BivariateGridi - the indexpublic double y(int j)
BivariateGridy in interface BivariateGridj - the indexpublic int sizeX()
BivariateGridsizeX in interface BivariateGridpublic int sizeY()
BivariateGridsizeY in interface BivariateGridCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.