Iterations Using Moving Average

Hi
I am working on time series forecasting using Moving Average. I am not able to create iterations for different window length. I have created a table with different length but this values are considered as string datatype not as a int.

Hi,
You can use the String To Number node to convert strings to numbers.
Kind regards,
Alexander

1 Like
 I tried that node but the problem is flow variables data type is not changed . For Example: I have window length 6,7,8 I have to use these 3 number in moving average flow variable but the problem is Window length in flow variable accept only single value not a multiple value another problem is it consider that 6,7,8  in Flow variable as  String [  ] .

Hi,
Then you have to loop over a table with your desired window lengths, e.g. using Table Row To Variable Loop Start. In each iteration you run the moving average with a different value for window length and in the end you can collect everything with the right loop end node.
Kind regards,
Alexander

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.