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)
BivariateGrid
z
in interface BivariateGrid
i
- the index along the x-axisj
- the index along the y-axispublic double[] x()
BivariateGrid
x
in interface BivariateGrid
public double[] y()
BivariateGrid
y
in interface BivariateGrid
public double x(int i)
BivariateGrid
x
in interface BivariateGrid
i
- the indexpublic double y(int j)
BivariateGrid
y
in interface BivariateGrid
j
- the indexpublic int sizeX()
BivariateGrid
sizeX
in interface BivariateGrid
public int sizeY()
BivariateGrid
sizeY
in interface BivariateGrid
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.