|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.util.AbstractConverterPlugIn
org.joone.util.ConverterPlugIn
org.joone.util.MovingAveragePlugIn
public class MovingAveragePlugIn
Changes the specified input serie data so that it becomes a moving average of itself. This plugin operates on specified serie/s of data in a vertical fashion.
For example if the serie to be converted contained the following data ....
and the requested moving average was set at 2 then the
serie would become
0
10
12.5
Any data prior to the moving
average spec is set at 0 as there is not enough data to calculate the actual
moving average. The data is NOT
normalised. To normalise the data use a NormalizerConverterPlugIn
.
Field Summary | |
---|---|
(package private) static long |
serialVersionUID
|
Fields inherited from class org.joone.util.AbstractConverterPlugIn |
---|
pluginListeners |
Constructor Summary | |
---|---|
MovingAveragePlugIn()
Default MovingAveragePlugIn constructor. |
|
MovingAveragePlugIn(java.lang.String newAdvSerieSel,
java.lang.String newMovAvgSpec)
MovingAveragePlugIn constructor that allows specification of the Advanced Serie Selector and the Moving Average Specification. |
Method Summary | |
---|---|
protected boolean |
convert(int serie)
Start the convertion to a moving average for the required serie. |
java.lang.String |
getAdvancedMovAvgSpec()
Gets the Moving Average value/s requested by the user. |
void |
setAdvancedMovAvgSpec(java.lang.String newAdvancedMovAvgSpec)
Sets the Moving Average value/s requested by the user. |
Methods inherited from class org.joone.util.ConverterPlugIn |
---|
isApplyEveryCycle, newCycle, setApplyEveryCycle |
Methods inherited from class org.joone.util.AbstractConverterPlugIn |
---|
addPlugIn, addPlugInListener, apply, applyOnColumns, applyOnRows, cascade, check, convertPatterns, dataChanged, fireDataChanged, getAdvancedSerieSelector, getInputVector, getName, getNextPlugIn, getPluginListeners, getSerieIndexNumber, getSerieSelected, getValuePoint, isConnected, removeAllPlugIns, removePlugInListener, setAdvancedSerieSelector, setConnected, setInputVector, setName, setNextPlugin, setNextPlugIn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
Constructor Detail |
---|
public MovingAveragePlugIn()
public MovingAveragePlugIn(java.lang.String newAdvSerieSel, java.lang.String newMovAvgSpec)
Method Detail |
---|
protected boolean convert(int serie)
convert
in class AbstractConverterPlugIn
serie
- the serie to convertpublic java.lang.String getAdvancedMovAvgSpec()
public void setAdvancedMovAvgSpec(java.lang.String newAdvancedMovAvgSpec)
newMovAvg
- double
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |