public interface IPredictorModel
Modifier and Type | Method and Description |
---|---|
void |
decode(int seed,
int nRows,
int nColumns,
byte[] encoding,
int offset,
int length,
int[] output)
Decodes the specified data using the predictor model to compute
output values from the specified input.
|
int |
encode(int nRows,
int nColumns,
int[] values,
byte[] encoding)
Encodes the specified data using the predictor model to develop
computed adjustments for the data grid.
|
PredictorModelType |
getPredictorType()
Gets the predictor type.
|
int |
getSeed()
Gets the seed value determined by the most recent call to the encoding
method.
|
boolean |
isNullDataSupported()
Indicates that the predictor model is intended to handle null values.
|
void decode(int seed, int nRows, int nColumns, byte[] encoding, int offset, int length, int[] output)
seed
- a seed value to provide the initial value for the encodingencoding
- the input values for the encoding, usually dimensions to
nRows*nColumnsnRows
- the number of rows in the raster data gridnColumns
- the number of columns in the raster data gridoffset
- the starting offset in the encoding array from which
data is to be taken.length
- the length of the valid section of the encoding array
from which data is to be taken.output
- array to accept the output data values, dimensions to at
least nRows*nColumnsint encode(int nRows, int nColumns, int[] values, byte[] encoding)
This routine returns the seed value detected in the data. This value is usually the first entry in the input value. In cases where the data contains nulls, the seed is sometimes the mean value of the non-null entries.
The length of the encoded output will be a maximum of 5 times the total number of entries in the input (it is usually much shorter than that). The encoding array should be dimensioned large enough to accept the maximum sized output.
nRows
- the number of rows in the raster data gridnColumns
- the number of columns in the data data gridvalues
- the input values to be encodedencoding
- the output encodingboolean isNullDataSupported()
int getSeed()
PredictorModelType getPredictorType()
Copyright © 2022. All rights reserved.