You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to use function pipelines to combine multiple timevectors according to a calculation -- something like zip from functional programming.
The above snippet illustrates what I'm thinking. A timevector tv1 has the zip pipeline element applied to it. The element takes a second timevector tv2 and a lambda as an argument. The data points from tv1 and tv2 are matched on times and the values are combined by applying the lambda which should produce a single result. Values from tv1 are referred to by $value1 in the lambda, and values from tv2 are referred to by $value2.
This could be extended to more than two timevectors potentially using a variadic parameter:
Without something like zip, one would need to "render" tv1 and tv2 using something like the unnest pipeline element, join the two on times, compute the new value using the calculation, form a new timevector, and then pass it on potentially to the rest of the pipeline.
The text was updated successfully, but these errors were encountered:
I would like to be able to use function pipelines to combine multiple timevectors according to a calculation -- something like
zip
from functional programming.The above snippet illustrates what I'm thinking. A timevector
tv1
has the zip pipeline element applied to it. The element takes a second timevectortv2
and a lambda as an argument. The data points from tv1 and tv2 are matched on times and the values are combined by applying the lambda which should produce a single result. Values from tv1 are referred to by$value1
in the lambda, and values from tv2 are referred to by$value2
.This could be extended to more than two timevectors potentially using a variadic parameter:
Without something like zip, one would need to "render" tv1 and tv2 using something like the unnest pipeline element, join the two on times, compute the new value using the calculation, form a new timevector, and then pass it on potentially to the rest of the pipeline.
The text was updated successfully, but these errors were encountered: