Skip to main content
Question

Filtering attributes based on statistical test


Hi.  I'm not an expert user of FME Desktop and am wondering if you can help solve this problem.  I am trying to use basic statistics to separate my data.  Here are the details:

 

 

Start with a set of polygon features with attributes.  Choose one numerical attribute. Calculate the standard deviation.  Next, decide the range of acceptable values (i.e. values up to 2 standard deviations from the mean).  Compare the attribute of each feature against the standard deviation.  If the attribute for that feature is outside the range of standard devitations then direct it to a different path/port.  The features that fall inside the range are directed into a different path / port

 

 

Can someone help coach me on what transformers I need to do this?  I appreciate the help.

2 replies

davideagle
Contributor
Forum|alt.badge.img+21
  • Contributor
  • January 6, 2016

Just two should do it, the StatisticsCalculator will get you the standard deviation and then you could use either the AttributeRangeFilter or the Tester transformer to filter off the positive matches.


erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • January 6, 2016

The key here is to use the Complete output port of the StatisticsCalculator. That way you have both the value and the standard deviation on the feature. You can next compare the value against the standard deviation per feature using the Tester.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings