Skip to main content
Question

n-ary summation in expression evaluator

  • September 11, 2018
  • 3 replies
  • 0 views

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor

Is there any way to calculate an n-ary summation in the expressionEvaluator or equivalent?

I have an expression to calculate that includes the following component, where n and a are attributes:

?na2n-1

3 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Author
  • Contributor
  • September 11, 2018

Although I would still be interested in the general case of summation, in this specific case, I was able to use some identities and geometric series to reduce the equation to a(2n+1-1).


siennaatsafe
Safer
Forum|alt.badge.img+10

Hi @jdh,

Thank you for your question. You may wish to try using the RCaller if you're interested in a more advanced calculation. Here is RCaller: Ins and outs of using R in FME. I found an example of summation in the R documentation. While there is a learning curve to using R it is very useful for statistical calculations and I've found the documentation is very useful. Hope that helps!


jdh
Contributor
Forum|alt.badge.img+28
  • Author
  • Contributor
  • September 12, 2018
siennaatsafe wrote:

Hi @jdh,

Thank you for your question. You may wish to try using the RCaller if you're interested in a more advanced calculation. Here is RCaller: Ins and outs of using R in FME. I found an example of summation in the R documentation. While there is a learning curve to using R it is very useful for statistical calculations and I've found the documentation is very useful. Hope that helps!

Hi Sienna,

 

 

I was checking to see if there was a way to do it in "native fme". I can do the calculation in python easily enough, and that doesn't require having R installed.

 

 


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