Interface VFilter
- All Known Implementing Classes:
VClamp
,VDeadZone
,VDerivative
,VFilterGroup
,VHighPassFilter
,VLowPassFilter
,VMotionProfile
,VRateLimit
,VTimedMovingAverage
,XYFilter
public interface VFilter
This is the VFilter interface class that gives a definition for how to implement a filter.
All that a VFilter does is take in the next vector in a stream and gives you the filtered value.
-
Method Summary
Modifier and TypeMethodDescriptiondefault VFilter
Combine two VFilters by adding their results togetherstatic VFilter
Create a VFilter by using an IFilter on the x and y components.static VFilter
Create a VFilter from a list of VFilters.Get next value in Filter based on the next value givendefault VFilter
Combine two VFilters by subtracting their results togetherdefault VFilter
Combine an VFilter with another VFilter
-
Method Details
-
create
Create a VFilter from a list of VFilters. This will create a VFilter with the least possible overhead for the number of filters provided.- Parameters:
filters
- list of VFilters to apply- Returns:
- an VFilter that uses every filter given
-
create
Create a VFilter by using an IFilter on the x and y components.- Parameters:
x
- IFilter used on x componenty
- IFilter used on y component- Returns:
- resulting VFilters
-
get
Get next value in Filter based on the next value given- Parameters:
next
- next input value in the stream- Returns:
- the output value of the filter
-
then
Combine an VFilter with another VFilter- Parameters:
next
- filter to be evaluated after this one- Returns:
- the combined filter
-
add
Combine two VFilters by adding their results together- Parameters:
other
- other VFilter to and with this one- Returns:
- the resulting VFilter after the and
-
sub
Combine two VFilters by subtracting their results together- Parameters:
other
- other VFilter to or with this one- Returns:
- the resulting VFilter after the or
-