Multi-valued parameters

Jan 26, 2011 at 4:54 PM
Edited Jan 26, 2011 at 4:54 PM

Thanks for this great project and sharing with all of us.

I need to handle multi-valued parameters in my own functions, like this:

 Expression e = new Expression("Average([a]) + [b]");
 e.Parameters["a"] = new int[] { 1, 2, 3, 4, 5 };
e.Parameters["b"] = 5; 

Is this possible with NCalc natively or with a workaround? If not, is it a feature that would be beneficial to others if I code it?



Jan 27, 2011 at 5:07 PM

It works natively.

You may want to update the documentation to reflect this.

Jan 27, 2011 at 5:37 PM

It is/was already in the documentation, under Parameters:


Nov 8, 2011 at 5:46 AM

Sorry, I don't quite understand - are you saying that ncalc supports an Average fn?

Does it also support things like stddev, Min, Max - all accepting a list of parameters?