-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer/Queue Cell #204
Comments
Maybe just construct a cell that outputs a circular buffer of type T. You'd
|
Hm, or a std::deque.
|
If i just want to pass a "delayed" value, not the whole buffer: is it possible to write the cell independent of the type of input/output? Just like the passthrough cell but with a buffer in between. |
Sure, deque of tendrils ought to do it On Fri, May 25, 2012 at 5:02 PM, Stephan <
Troy Straszheim |
Could you please have a look at my implementation and tell me what's wrong? |
On Fri, May 25, 2012 at 5:58 PM, Stephan <
It looks like the ecto bits are correct. You might use std::deque and Troy Straszheim |
Thanks! I forgot to return |
Well, that makes sense but we usually just deal with that by stacking If you feel like writing a cell, please ! Maybe it should take a vector or On Fri, May 25, 2012 at 6:57 AM, Stephan <
|
In many applications some sensor input has to be buffered for further processing, i.e. an algorithm needs not only the current but also N past sensor values for processing. An example would be a median/mean/etc. filter of a fixed width.
Is there some functionality in ecto for that? If not, I am willing to write a cell that does that:
Input: any type
Params: number of values to buffer
Output: N outputs of same type as input, dependent on the number of values given as param.
This cell would gather N inputs before writing anything to the output. The output could be a vector as well, what do you suggest?
The text was updated successfully, but these errors were encountered: