10 #include <dynamic-graph/factory.h>    12 #include <boost/function.hpp>    16 namespace dg = ::dynamicgraph;
    33       updateSIN(NULL, 
"ExpMovingAvg(" + n + 
")::input(vector)::update"),
    34       refresherSINTERN(
"ExpMovingAvg(" + n + 
")::intern(dummy)::refresher"),
    36                   updateSIN << refresherSINTERN,
    37                   "ExpMovingAvg(" + n + 
")::output(vector)::average"),
    44   std::string docstring;
    48       "    Set the alpha used to update the current value."    51              new ::dynamicgraph::command::Setter<ExpMovingAvg, double>(
    62   assert(alpha <= 1. && alpha >= 0.);
 
void setAlpha(const double &alpha_)
void signalRegistration(const SignalArray< int > &signals)
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePosture, "FeaturePosture")
void setDependencyType(DependencyType dep)
AABB & update(const Vec3f &a, const Vec3f &b)
dynamicgraph::Vector average
ExpMovingAvg(const std::string &n)
virtual ~ExpMovingAvg(void)
SignalTimeDependent< int, int > refresherSINTERN
SignalTimeDependent< dynamicgraph::Vector, int > averageSOUT
void addCommand(const std::string &name, command::Command *command)
SignalPtr< dynamicgraph::Vector, int > updateSIN
dynamicgraph::Vector & update(dynamicgraph::Vector &res, const int &inTime)