Skip to main content

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

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


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