Skip to main content
Question

Filtering attributes based on statistical test

  • August 6, 2015
  • 2 replies
  • 24 views

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.
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.

2 replies

davideagle
Contributor
Forum|alt.badge.img+22
  • 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+26
  • 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.