public class TLcdMatrix extends Object implementsILcdMatrix, ILcdMatrixView
TLcdMatrix
is a "regular" ILcdMatrixView
, with
the x- and y-coordinates are regularly spaced.
The implementation of the ILcdMatrix
interface is for backward
compatibility.Constructor and Description |
---|
TLcdMatrix(double[][] aValueArray,
double[] aXArray,
double[] aYArray)
Creates a matrix of points which are regularly spaced.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount()
Returns the number of columns in this matrix view.
|
int |
getHeight()
Deprecated.
Use
getRowCount() . |
int |
getRowCount()
Returns the number of rows in this matrix view.
|
double |
getValue(int i,
int j)
Returns the value of the matrix at point (i,j).
|
int |
getWidth()
Deprecated.
Use
getColumnCount() . |
double |
getX(int i,
int j)
Deprecated.
|
double |
getY(int i,
int j)
Deprecated.
|
double |
retrieveAssociatedPointX(int i,
int j)
Returns the x-coordinate of the associated point corresponding to the column
index
aColumnIndex and the row index aRowIndex . |
double |
retrieveAssociatedPointY(int i,
int j)
Returns the y-coordinate of the associated point corresponding to the column
index
aColumnIndex and the row index aRowIndex . |
public TLcdMatrix(double[][] aValueArray, double[] aXArray, double[] aYArray)
aValueArray
- the array of values for the given points.aXArray
- the array of values for the first coordinate of the points.aYArray
- the array of values for the second coordinate of the points.public double getValue(int i, int j)
ILcdMatrix
getValue
in interface ILcdMatrixView
getValue
in interface ILcdMatrix
i
- The first index of the matrix point.j
- The second index of the matrix point.public double retrieveAssociatedPointX(int i, int j)
ILcdMatrixView
aColumnIndex
and the row index aRowIndex
.retrieveAssociatedPointX
in interface ILcdMatrixView
i
- the column index, positive and smaller than the columncount.j
- the row index, positive and smaller than the rowcount.public double retrieveAssociatedPointY(int i, int j)
ILcdMatrixView
aColumnIndex
and the row index aRowIndex
.retrieveAssociatedPointY
in interface ILcdMatrixView
i
- the column index, positive and smaller than the columncount.j
- the row index, positive and smaller than the rowcount.public int getRowCount()
ILcdMatrixView
getRowCount
in interface ILcdMatrixView
public int getColumnCount()
ILcdMatrixView
getColumnCount
in interface ILcdMatrixView
public double getX(int i, int j)
retrieveAssociatedPointX( int, int )
.ILcdMatrix
getX
in interface ILcdMatrix
i
- The first index of the matrix point.j
- The second index of the matrix point.public double getY(int i, int j)
retrieveAssociatedPointY( int, int )
.ILcdMatrix
getY
in interface ILcdMatrix
i
- The first index of the matrix point.j
- The second index of the matrix point.public int getWidth()
getColumnCount()
.ILcdMatrix
getWidth
in interface ILcdMatrix
public int getHeight()
getRowCount()
.ILcdMatrix
getHeight
in interface ILcdMatrix