public class LinearFilter extends InterpolatorFilter
ValueFilter.Abstract
NO_POINT_VALUES
Constructor and Description |
---|
LinearFilter(Optional<ElapsedTime> timeLimit,
Optional<ElapsedTime> stampTrimUnit,
double deadbangGap,
double deadbandRatio)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
protected Optional<PointValue> |
doFilter(PointValue pointValue)
Says if a value should be filtered.
|
void |
reset()
Resets.
|
polate
shouldFilter
filter, getHeldPointValue, getPreviousPointValue, getTimeLimit, isDisabled, pointValues, setDisabled, setHeldPointValue, setPreviousPointValue, snap, toString
public LinearFilter(@Nonnull Optional<ElapsedTime> timeLimit, @Nonnull Optional<ElapsedTime> stampTrimUnit, double deadbangGap, double deadbandRatio)
timeLimit
- The optional time limit.stampTrimUnit
- The optional stamp trim unit.deadbangGap
- The deadband gap.deadbandRatio
- The deadband ratio.public void reset()
reset
in interface ValueFilter
reset
in class ValueFilter.Abstract
protected Optional<PointValue> doFilter(PointValue pointValue)
doFilter
in class InterpolatorFilter
pointValue
- The point value.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.