The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Lag series operator with lag -1
Dear all,
I would like to suggest a new feature to the "lag series" operator of the series extension. Currently this operator lags the selected attribute according to the specified parameter. However, the parameter has to be >= 1. So I was wondering why this is limited in that way. I would come handy if this operator could also lag negative values -> the other direction.
Best regards
Sachs
<?xml version="1.0" encoding="UTF-8"?><process version="7.5.001">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="7.5.001" expanded="true" name="Process">
<process expanded="true">
<operator activated="true" class="generate_data" compatibility="7.5.001" expanded="true" height="68" name="Generate Data" width="90" x="45" y="34"/>
<operator activated="true" class="series:lag_series" compatibility="7.4.000" expanded="true" height="82" name="Lag Series" width="90" x="179" y="34">
<list key="attributes">
<parameter key="att1" value="1"/>
</list>
</operator>
<connect from_op="Generate Data" from_port="output" to_op="Lag Series" to_port="example set input"/>
<connect from_op="Lag Series" from_port="example set output" to_port="result 1"/>
<portSpacing port="source_input 1" spacing="0"/>
<portSpacing port="sink_result 1" spacing="0"/>
<portSpacing port="sink_result 2" spacing="0"/>
</process>
</operator>
</process>
Tagged:
1
Answers
Hey, this is a great idea. Have you thought about adding it to our Idea forum? Our Developers scan that regularily for ideas instead of digging through there.
Hi,
Is there any development for this idea?
Hi @suleymansahal,
I see where you are comming from. A workaround would be to sort the data set the other way around, lag it, and sort it again.
Best,
Martin
Dortmund, Germany
Hi Martin,
Thank you for the solution. I guess I just have to create new id attribute if the present one is not in correct order.