public class MatrixLookupTable extends Object
MatrixLookupTable performs the function of
multilinear interpolation for matrix lookup tables with an
arbitrary number of dimensions.
The implementation simply delegates to an VectorLookupTable.
| Constructor and Description |
|---|
MatrixLookupTable(int m,
int n,
MatrixFactory matrixFactory,
double[] values,
double[]... dimensions) |
MatrixLookupTable(int m,
int n,
MatrixFactory matrixFactory,
double[] values,
IntervalPartition... dimensions) |
MatrixLookupTable(int m,
int n,
MatrixFactory matrixFactory,
float[] values,
float[]... dimensions) |
MatrixLookupTable(int m,
int n,
MatrixFactory matrixFactory,
float[] values,
IntervalPartition... dimensions) |
MatrixLookupTable(int m,
int n,
MatrixFactory matrixFactory,
VectorLookupTable vectorLookupTable) |
| Modifier and Type | Method and Description |
|---|---|
IntervalPartition |
getDimension(int i)
Returns the the ith dimension associated with the lookup table.
|
int |
getDimensionCount()
Returns the number of dimensions associated with the lookup table.
|
IntervalPartition[] |
getDimensions()
Returns the dimensions associated with the lookup table.
|
double[][] |
getValues(double... coordinates)
Returns an interpolated value matrix for the given coordinates.
|
public MatrixLookupTable(int m,
int n,
MatrixFactory matrixFactory,
double[] values,
IntervalPartition... dimensions)
public MatrixLookupTable(int m,
int n,
MatrixFactory matrixFactory,
float[] values,
IntervalPartition... dimensions)
public MatrixLookupTable(int m,
int n,
MatrixFactory matrixFactory,
double[] values,
double[]... dimensions)
public MatrixLookupTable(int m,
int n,
MatrixFactory matrixFactory,
float[] values,
float[]... dimensions)
public MatrixLookupTable(int m,
int n,
MatrixFactory matrixFactory,
VectorLookupTable vectorLookupTable)
public final int getDimensionCount()
public final IntervalPartition[] getDimensions()
public final IntervalPartition getDimension(int i)
i - the index number of the dimension of interestpublic final double[][] getValues(double... coordinates)
throws IllegalArgumentException
coordinates - the coordinates of the lookup point.IllegalArgumentException - if the length of the coordinates array is
not equal to the number of dimensions associated
with the lookup table.NullPointerException - if the coordinates array is null.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.