public class BivariateRegularGrid extends Object implements BivariateGrid
Constructor and Description |
---|
BivariateRegularGrid(double[][] z,
double x0,
double y0,
double deltaX,
double deltaY)
Create a new grid where the dependent variable values are taken from the given
two-dimensional array and the values of the dependent variables are specified by their first
values and the difference between successive values.
|
Modifier and Type | Method and Description |
---|---|
double |
deltaX()
Return the distance between two adjacent points along the x-axis.
|
double |
deltaY()
Return the distance between two adjacent points along the y-axis.
|
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 |
x0()
Get the value of x0, the first 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 |
y0()
Get the value of y0, the first 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 BivariateRegularGrid(double[][] z, double x0, double y0, double deltaX, double deltaY)
z
- the two-dimensional array containing the values of the dependent variablex0
- the first value of the independent variable xy0
- the first value of the independent variable ydeltaX
- the distance between adjacent points along the x-axisdeltaY
- the distance between adjacent points 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
public double x0()
public double y0()
public double deltaX()
public double deltaY()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.