Skip to main content
Best Answer

How to create a for loop

  • August 6, 2019
  • 3 replies
  • 328 views

Forum|alt.badge.img

How can I define a for loop, that count the average one after an other point. I sorted the point list, so now they are in ascending numeric order, and I want to calculate get a values that comes from the average of the points . For example: the fifth elements average is counted from the first five data, the sixth is from the 1,2,3,4,5,6th element?

Best answer by gazza

You might not need a loop, the Cumulative output of the StatisticsCalculator may give you the result you are after.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+62

You can only do loops inside a custom transformer. Check out the FME Desktop Advanced training, it has a section on custom transformers that includes loops.


gazza
Contributor
Forum|alt.badge.img+6
  • Contributor
  • Best Answer
  • August 6, 2019

You might not need a loop, the Cumulative output of the StatisticsCalculator may give you the result you are after.


david_r
Celebrity
  • August 7, 2019

If you're comfortable writing some lines of Python, then the PythonCaller could also be a fast and efficient solution.