public class MultivariateRegularGrid extends Object implements MultivariateGrid
MultivariateArrayGrid
.Modifier and Type | Class and Description |
---|---|
static class |
MultivariateRegularGrid.EquallySpacedVariable
Specify the positioning and spacing along one dimension.
|
Constructor and Description |
---|
MultivariateRegularGrid(MultiDimensionalCollection<Double> y,
MultivariateRegularGrid.EquallySpacedVariable... x)
Create a new instance where the dependent variable is specified by a
MultiDimensionalCollection and the independent variables form the specified grid. |
Modifier and Type | Method and Description |
---|---|
double |
deltaX(int i)
Get the distance between two adjacent points along the axis with the given index.
|
int |
dimension()
Get the total number of dimensions of the grid.
|
int |
size(int i)
Get the size of the grid in the given dimension xi.
|
double[] |
x(int i)
Get all the values of the independent variable xi as an array.
|
double |
x(int i,
int j)
Get the value of the independent variable xi at the given index.
|
double |
x0(int i)
Get the value of \(\mathbf{x_i}_0\), the first value of the independent variable \(x_i\).
|
double |
y(int... indices)
Get the value of the dependent variable y at the given indices in the grid.
|
public MultivariateRegularGrid(MultiDimensionalCollection<Double> y, MultivariateRegularGrid.EquallySpacedVariable... x)
MultiDimensionalCollection
and the independent variables form the specified grid.y
- the values of the dependent variablex
- each element specifies the independent variables along one dimensionpublic double y(int... indices)
MultivariateGrid
y
in interface MultivariateGrid
indices
- the indices of the independent variables in the gridpublic double x(int i, int j)
MultivariateGrid
x
in interface MultivariateGrid
i
- the dimension index of the independent variable xij
- the index of the value in the specified dimension xipublic double[] x(int i)
MultivariateGrid
x
in interface MultivariateGrid
i
- the dimension index of the independent variable xipublic int size(int i)
MultivariateGrid
size
in interface MultivariateGrid
i
- the dimension index of the independent variable xipublic int dimension()
MultivariateGrid
dimension
in interface MultivariateGrid
public double x0(int i)
i
- the dimension index of the independent variable xipublic double deltaX(int i)
i
- the dimension index of the independent variable xiCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.