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)
MultivariateGridy in interface MultivariateGridindices - the indices of the independent variables in the gridpublic double x(int i,
int j)
MultivariateGridx in interface MultivariateGridi - the dimension index of the independent variable xij - the index of the value in the specified dimension xipublic double[] x(int i)
MultivariateGridx in interface MultivariateGridi - the dimension index of the independent variable xipublic int size(int i)
MultivariateGridsize in interface MultivariateGridi - the dimension index of the independent variable xipublic int dimension()
MultivariateGriddimension in interface MultivariateGridpublic 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.