com.yobotics.simulationconstructionset.util.math.filter
Class BetaFilteredYoVariable
java.lang.Object
com.yobotics.simulationconstructionset.YoVariable
com.yobotics.simulationconstructionset.DoubleYoVariable
com.yobotics.simulationconstructionset.util.math.filter.BetaFilteredYoVariable
- All Implemented Interfaces:
- java.io.Serializable
public class BetaFilteredYoVariable
- extends DoubleYoVariable
- Author:
- thutcheson
A BetaFilteredYoVariable is a filtered version of an input YoVar.
Either a YoVariable holding the unfiltered val is passed in to the
constructor and update() is called every tick, or update(double) is
called every tick. The BetaFilteredYoVariable updates it's val
with the current filtered version using
filtered_{n} = (raw_{0} + ... + raw_{n-1} + raw_{n}) / n
- See Also:
- Serialized Form
Methods inherited from class com.yobotics.simulationconstructionset.DoubleYoVariable |
add, add, getDoubleValue, getValueAsDouble, getValueString, getValueStringFromDouble, getYoVariableType, isNaN, mul, mul, set, setValueFromDouble, sub, sub, toString, valueEquals |
Methods inherited from class com.yobotics.simulationconstructionset.YoVariable |
addVariableChangedListener, fullNameEndsWithCaseInsensitive, getDescription, getFullNameWithNameSpace, getManualScalingMax, getManualScalingMin, getName, getName, getNameAndValueString, getNameAndValueStringFromDouble, getNameSpace, getNumericValueAsAString, getShortName, getVariableChangedListeners, getYoVariableRegistry, hasSameFullName, notifyVariableChangedListeners, removeAllVariableChangedListeners, removeVariableChangedListener, setManualScalingMinMax |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BetaFilteredYoVariable
public BetaFilteredYoVariable(java.lang.String name,
YoVariableRegistry registry,
int beta)
BetaFilteredYoVariable
public BetaFilteredYoVariable(java.lang.String name,
YoVariableRegistry registry,
int beta,
DoubleYoVariable positionVariable)
reset
public void reset()
update
public void update()
update
public void update(double currentPosition)