public class SlidingWindowOperation extends java.lang.Object implements DatasetOperation
| Constructor and Description |
|---|
SlidingWindowOperation()
Creates a new SlidingWindowOperation with a 5x5 window and stepsize 5.
|
SlidingWindowOperation(int stepSize,
int windowWidth)
Creates a new SlidingWindowOperation.
|
SlidingWindowOperation(int stepSize,
int windowSize,
DatasetOperation op) |
SlidingWindowOperation(int stepSize,
int windowWidth,
int windowHeight) |
SlidingWindowOperation(int stepSize,
int windowWidth,
int windowHeight,
DatasetOperation op)
Creates a new SlidingWindowOperation.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getObjectMap()
Creates a map of the important fields for the instance, suitable for serialization.
|
DatasetOperation |
getOp()
Returns the DatasetOperation performed on each window.
|
long |
getSerializationVersion()
Returns the current version of the serialization format.
|
int |
getStepSize()
Returns the number of points moved between windows.
|
int |
getVersion()
Returns the current class version.
|
int |
getWindowHeight()
Returns the size of the square window in points.
|
int |
getWindowWidth()
Returns the size of the square window in points.
|
int |
getXoffset()
Returns the current horizontal offset of the sliding window.
|
int |
getYoffset()
Returns the current vertical offset of the sliding window.
|
void |
initCurrentVersion(java.util.Map<java.lang.String,java.lang.Object> objectMap)
Initializes an instance with a current-version object graph.
|
Dataset |
run(Dataset input)
Slides across the input Dataset.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, initPreviousVersion, initUnknownVersion, load, read, save, writepublic SlidingWindowOperation(int stepSize,
int windowWidth,
int windowHeight,
DatasetOperation op)
stepSize - points to move between windowswindowWidth - width of windowwindowHeight - height of windowop - for each window in the Dataset, perform this operation on the contentspublic SlidingWindowOperation(int stepSize,
int windowSize,
DatasetOperation op)
public SlidingWindowOperation(int stepSize,
int windowWidth,
int windowHeight)
public SlidingWindowOperation(int stepSize,
int windowWidth)
stepSize - points to move between windowswindowWidth - use a window of windowWidth x windowWidth pointspublic SlidingWindowOperation()
public Dataset run(Dataset input)
run in interface DatasetOperationinput - Dataset on which to operatepublic int getXoffset()
public int getYoffset()
public int getStepSize()
public int getWindowWidth()
public int getWindowHeight()
public DatasetOperation getOp()
public long getSerializationVersion()
ObjectMapgetSerializationVersion in interface ObjectMappublic int getVersion()
ObjectMapgetVersion in interface ObjectMappublic java.util.Map<java.lang.String,java.lang.Object> getObjectMap()
ObjectMapgetObjectMap in interface ObjectMappublic void initCurrentVersion(java.util.Map<java.lang.String,java.lang.Object> objectMap)
ObjectMapinitCurrentVersion in interface ObjectMapobjectMap - object graph for initialization