|
RoboJDETM v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.ridgesoft.robotics.Smoother
public class Smoother
Implements a linear smoothing function to filter noise from the intput signal.
The smoothing equation is:
value = factor * previousValue + (1.0 - factor) * sample
| Constructor Summary | |
|---|---|
Smoother(float smoothingFactor,
float seed)
Creates a Smoother. |
|
| Method Summary | |
|---|---|
float |
smooth(float sample)
Smooths the next sample. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| Constructor Detail |
|---|
public Smoother(float smoothingFactor,
float seed)
smoothingFactor - the factor to use when smoothing (0.0 < smoothingFactor <
1.0). The smaller the value, the less smoothing is done.seed - initial value to prime to smoother| Method Detail |
|---|
public float smooth(float sample)
sample - raw sample value coming from a sensor
|
RoboJDETM v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||