public final class OccurrenceFilter extends Object implements PostProcessing
Filter that removes or keeps only the N × k occurrences of a specific element type (code) in a given timeline.
| Constructor and Description |
|---|
OccurrenceFilter(String elementCode,
int k,
boolean removeAll)
Constructor
|
public OccurrenceFilter(String elementCode, int k, boolean removeAll)
elementCode - : code of the elements that has to be removed / keptk - : occurrence samplingremoveAll - : true if the filter consists in removing the specified elements, false if the filter consisits in
keeping only the specified elements.public void applyTo(Timeline list)
applyTo in interface PostProcessinglist - : the timeline that has to be processedCopyright © 2025 CNES. All rights reserved.