public class MovingWindowMatrix
extends java.lang.Object
Constructor and Description |
---|
MovingWindowMatrix(org.nd4j.linalg.api.ndarray.INDArray toSlice,
int windowRowSize,
int windowColumnSize)
Same as calling new MovingWindowMatrix(toSlice,windowRowSize,windowColumnSize,false)
|
MovingWindowMatrix(org.nd4j.linalg.api.ndarray.INDArray toSlice,
int windowRowSize,
int windowColumnSize,
boolean addRotate) |
Modifier and Type | Method and Description |
---|---|
java.util.List<org.nd4j.linalg.api.ndarray.INDArray> |
windows()
Returns a list of non flattened moving window matrices
|
java.util.List<org.nd4j.linalg.api.ndarray.INDArray> |
windows(boolean flattened)
Moving window, capture a row x column moving window of
a given matrix
|
public MovingWindowMatrix(org.nd4j.linalg.api.ndarray.INDArray toSlice, int windowRowSize, int windowColumnSize, boolean addRotate)
toSlice
- matrix to slicewindowRowSize
- the number of rows in each windowwindowColumnSize
- the number of columns in each windowaddRotate
- whether to add the possible rotations of each moving windowpublic MovingWindowMatrix(org.nd4j.linalg.api.ndarray.INDArray toSlice, int windowRowSize, int windowColumnSize)
toSlice
- windowRowSize
- windowColumnSize
- public java.util.List<org.nd4j.linalg.api.ndarray.INDArray> windows()
public java.util.List<org.nd4j.linalg.api.ndarray.INDArray> windows(boolean flattened)
flattened
- whether the arrays should be flattened or not