Thinning Filter

Thinning Filter

Short Description: Thins the elements from the source so that fewer are used for later work.
Threaded: Yes
Memory Usage: Light
Supports Streams: Yes

This is a simple thinning filter that is provided in case you want to cut out a large number of elements and don't want to do it in any type of manner provided by other filters. You provide an integer, n, and only one out of every n inputs will be selected. Instead of individual elements you can also do the thinning by whole groups. This can be more useful for SWIFT so that you can keep all the particles in a timestep, but only take every 10th timestep or something along those lines. A group will always be defined as adjacent elements having the same value for the top sort formula of the input data source.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License