public class BivariateRegularGrid extends Object implements BivariateGrid
| Constructor and Description |
|---|
BivariateRegularGrid(double[][] z,
double x0,
double y0,
double deltaX,
double deltaY)
Constructs 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 \(x_{i}\).
|
double |
x(int i)
Get the value of \(x_{i}\), the i-th value of the independent
variable x.
|
double |
x0()
Get the value of \(x_{0}\), the first value of the independent
variable x.
|
double[] |
y()
Get the values of the independent variable \(y_{j}\).
|
double |
y(int j)
Get the value of \(y_{j}\), the j-th value of the independent
variable y.
|
double |
y0()
Get the value of \(y_{0}\), 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)
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 BivariateGridpublic double x0()
public double y0()
public double deltaX()
public double deltaY()
Copyright © 2010-2026 NM Group. All Rights Reserved.