public interface IPadArray
Supports various methods of data padding
Modifier and Type | Field and Description |
---|---|
static int |
CIRCULARPAD
defines circular padding.
|
static int |
SYMMETRICPAD
defines symmetric padding.
|
Modifier and Type | Method and Description |
---|---|
static int |
getIndex(int dataLength,
int index,
int mode)
Helper method to pick values from X, Y arrays.
|
static final int CIRCULARPAD
static final int SYMMETRICPAD
static int getIndex(int dataLength, int index, int mode)
It accepts negative indexes as well as larger than X.size() and does in-place padding. Returns new proper index for array that accounts padding e.g. for input = -2 it returns last+2 if padding is circular
Do no check relations of window (provided \c index) to whole data size. May be unstable for certain cases.
dataLength
- Length of dataindex
- Index of element to getmode
- Method of padding. Available are: - \b CIRCULARPAD - as in Matlab padarray - \b
SYMMETRICPAD - as in Matlab padarrayCopyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.