Class SearchWindow
- java.lang.Object
-
- edu.gsu.cs.dmlab.distance.dtw.search.SearchWindow
-
- All Implemented Interfaces:
ISearchWindow
- Direct Known Subclasses:
ExpandedResWindow
public abstract class SearchWindow extends Object implements ISearchWindow
Abstract Search Window- Author:
- Thomas Abeel, Stan Salvador, stansalvador@hotmail.com, refactored by Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description SearchWindow(int tsIsize, int tsJsize)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
expandWindow(int radius)
Iterator<ColMajorCell>
iterator()
Method that returns an iterator that produces the index pairs of all the cells within this windowprotected void
markVisited(int col, int row)
int
maxI()
Method that returns the maximum value of I in this search window, where I is the column index in an (I,J) = (Column, Row) matrix indexing schemeint
maxJ()
Method that returns the maximum value of J in this search window, where J is the row index in an (I,J) = (Column, Row) matrix indexing schemeint
maxJforI(int i)
Method that returns the maximum value of J in this search window at position I, where J is the row index in an (I,J) = (Column, Row) matrix indexing schemeint
minI()
Method that returns the minimum value of I in this search window, where I is the column index in an (I,J) = (Column, Row) matrix indexing schemeint
minJ()
Method that returns the minimum value of J in this search window, where J is the row index in an (I,J) = (Column, Row) matrix indexing schemeint
minJforI(int i)
Method that returns the minimum value of J in this search window at position I, where J is the row index in an (I,J) = (Column, Row) matrix indexing schemeint
size()
Method that returns the size of the search window
-
-
-
Method Detail
-
minI
public int minI()
Description copied from interface:ISearchWindow
Method that returns the minimum value of I in this search window, where I is the column index in an (I,J) = (Column, Row) matrix indexing scheme- Specified by:
minI
in interfaceISearchWindow
- Returns:
- The minimum value I takes in this window
-
maxI
public int maxI()
Description copied from interface:ISearchWindow
Method that returns the maximum value of I in this search window, where I is the column index in an (I,J) = (Column, Row) matrix indexing scheme- Specified by:
maxI
in interfaceISearchWindow
- Returns:
- The maximum value I takes in this window
-
minJ
public int minJ()
Description copied from interface:ISearchWindow
Method that returns the minimum value of J in this search window, where J is the row index in an (I,J) = (Column, Row) matrix indexing scheme- Specified by:
minJ
in interfaceISearchWindow
- Returns:
- The minimum value J takes in this window
-
maxJ
public int maxJ()
Description copied from interface:ISearchWindow
Method that returns the maximum value of J in this search window, where J is the row index in an (I,J) = (Column, Row) matrix indexing scheme- Specified by:
maxJ
in interfaceISearchWindow
- Returns:
- The maximum value J takes in this window
-
minJforI
public int minJforI(int i)
Description copied from interface:ISearchWindow
Method that returns the minimum value of J in this search window at position I, where J is the row index in an (I,J) = (Column, Row) matrix indexing scheme- Specified by:
minJforI
in interfaceISearchWindow
- Returns:
- The minimum value J takes in this window
-
maxJforI
public int maxJforI(int i)
Description copied from interface:ISearchWindow
Method that returns the maximum value of J in this search window at position I, where J is the row index in an (I,J) = (Column, Row) matrix indexing scheme- Specified by:
maxJforI
in interfaceISearchWindow
- Returns:
- The maximum value J takes in this window
-
size
public int size()
Description copied from interface:ISearchWindow
Method that returns the size of the search window- Specified by:
size
in interfaceISearchWindow
- Returns:
-
iterator
public Iterator<ColMajorCell> iterator()
Description copied from interface:ISearchWindow
Method that returns an iterator that produces the index pairs of all the cells within this window- Specified by:
iterator
in interfaceISearchWindow
- Returns:
- Iterator used to iterate over the cells in the search window
-
expandWindow
protected void expandWindow(int radius)
-
markVisited
protected final void markVisited(int col, int row)
-
-