public class LsOptimalPredictor08 extends Object
The method used for this class is based on the PDF document: Lewis, M. and Smith, D. H. (1994). "Optimal Predictors for the Data Compression of Digital Elevation Models using the Method of Lagrange Multipliers"
Constructor and Description |
---|
LsOptimalPredictor08() |
Modifier and Type | Method and Description |
---|---|
double[] |
computeCoefficients(int nRows,
int nColumns,
int[] values)
Computes the coefficients for an optimal predictor.
|
public double[] computeCoefficients(int nRows, int nColumns, int[] values)
row i: u3 u0 S(i,j) row i-1: u4 u1 u2 row i-2: u5 u6 u7
nRows
- a value of 4 or greaternColumns
- a value of 4 or greatervalues
- an array of values given in row-major order.Copyright © 2022. All rights reserved.