|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.signalprocessing.filter.MovingAverageByExtension
public class MovingAverageByExtension
This implements a Moving Average filter with these properties
Note that both past as well as future values are used in generating the outputs. Thus, be cautious to use this in a forecasting model.
When the filter length is even, more of the filter is forward in time than backward.
| Constructor Summary | |
|---|---|
MovingAverageByExtension(double[] filter)
Create a MovingAverageByExtension filter. |
|
| Method Summary | |
|---|---|
double[] |
filtering(double[] Xt)
Get the filtered signals. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MovingAverageByExtension(double[] filter)
filter - the filter coefficients in reverse time order| Method Detail |
|---|
public double[] filtering(double[] Xt)
Filter
filtering in interface FilterXt - the input signals
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||