public class DeadbandFilter extends ValueFilter.Abstract
ValueFilter.AbstractNO_POINT_VALUES| Constructor and Description |
|---|
DeadbandFilter(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.
|
protected boolean |
shouldFilter(Double value,
Double referenceValue)
Asks if a value should be filtered, considering a reference value.
|
filter, getHeldPointValue, getPreviousPointValue, getTimeLimit, isDisabled, pointValues, reset, setDisabled, setHeldPointValue, setPreviousPointValue, snap, toStringpublic DeadbandFilter(@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.protected Optional<PointValue> doFilter(PointValue pointValue)
doFilter in class ValueFilter.AbstractpointValue - The point value.@CheckReturnValue
protected boolean shouldFilter(@Nonnull
Double value,
@Nonnull
Double referenceValue)
value - The value.referenceValue - The reference value.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.