|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.data.AbstractDataSource
de.erichseifert.gral.data.filters.Filter
de.erichseifert.gral.data.filters.Median
public class Median
Class that calculates the median of a data sequence
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.erichseifert.gral.data.filters.Filter |
---|
Filter.Mode |
Constructor Summary | |
---|---|
Median(DataSource original,
int windowSize,
int offset,
Filter.Mode mode,
int... cols)
Creates a new Median object with the specified DataSource, window size, offset, Mode, and columns. |
Method Summary | |
---|---|
int |
getOffset()
Returns the offset from the current value used to calculate the median to the last value of the window. |
int |
getWindowSize()
Returns the size of the window which is used to calculate the median. |
void |
setOffset(int offset)
Sets the offset from the current value used to calculate the median to the last value of the window. |
void |
setWindowSize(int windowSize)
Set the size of the window which is used to calculate the median. |
Methods inherited from class de.erichseifert.gral.data.filters.Filter |
---|
dataChanged, get, getColumnCount, getMode, getRowCount, setMode |
Methods inherited from class de.erichseifert.gral.data.AbstractDataSource |
---|
addDataListener, getColumn, getRow, getStatistics, iterator, removeDataListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Median(DataSource original, int windowSize, int offset, Filter.Mode mode, int... cols)
original
- DataSource to be filtered.windowSize
- Number of rows to be used for the calculation of the median.offset
- Offset from the current filtered value to the last value of the window.mode
- Mode of filtering.cols
- Column indexes.Method Detail |
---|
public int getWindowSize()
public void setWindowSize(int windowSize)
windowSize
- Number of rows used.public int getOffset()
public void setOffset(int offset)
offset
- Offset.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |