public class WeightedMovingAverage extends Filter
| Constructor and Description |
|---|
WeightedMovingAverage(double[] w,
int ic,
double init,
double min)
WeightedMovingAverage
Input values less than @param min are ignored and assumed to equal @param min.
|
| Modifier and Type | Method and Description |
|---|---|
double |
output(double d)
output
Returns the filtered input (double) @param d value
|
public WeightedMovingAverage(double[] w,
int ic,
double init,
double min)
w - weightsic - position of the mean valueinit - initial value for the filtermin - minimum value of the input