Re: [Architecture] Extensions for Siddhi - Math operations

2014-10-19 Thread Aiyadurai Rajeevan
+1 Hi Sanjiva/Lahiru, math: would be most meaningful in this context, Hence i'll also align my code with this namespace. Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Sat, Oct 18, 2014 at 4:18 PM, Lahiru Cooray lahi...@wso2.com

Re: [Architecture] Extensions for Siddhi - Math operations

2014-10-19 Thread Rajeevan Vimalanathan
+1 for using 'math' instead of 'custom' On Mon, Oct 20, 2014 at 9:47 AM, Lahiru Cooray lahi...@wso2.com wrote: Hi Maninda, We used standard math operations available in java.lang.Math package and we have implemented the operations which are not available in the mentioned package (eg: pmod,

Re: [Architecture] Extensions for Siddhi - Math operations

2014-10-18 Thread Lahiru Cooray
Hi Sanjiva, We used the alias 'custom' because we implemented these as custom extensions to Siddhi. Anyway 'math' would be the more meaningful alias. +1 for 'math:' On Sat, Oct 18, 2014 at 11:09 AM, Sanjiva Weerawarana sanj...@wso2.com wrote: Great - but why custom:. Can we not use math:??

Re: [Architecture] Extensions for Siddhi - Math operations

2014-10-17 Thread Sanjiva Weerawarana
Great - but why custom:. Can we not use math:?? On Wed, Oct 15, 2014 at 5:34 PM, Lahiru Cooray lahi...@wso2.com wrote: Hi, We have implemented below Math operations (all the Math operations available in Hive) as extensions to Siddhi engine. round(DOUBLE a)round(DOUBLE a, INT d)floor(DOUBLE

[Architecture] Extensions for Siddhi - Math operations

2014-10-15 Thread Lahiru Cooray
Hi, We have implemented below Math operations (all the Math operations available in Hive) as extensions to Siddhi engine. round(DOUBLE a)round(DOUBLE a, INT d)floor(DOUBLE a)ceil(DOUBLE a), ceiling(DOUBLE a)rand(), rand(INT seed)exp(DOUBLE a), exp(DECIMAL a)ln(DOUBLE a), ln(DECIMAL

Re: [Architecture] Extensions for Siddhi - Math operations

2014-10-15 Thread Seshika Fernando
Excellent! Some of these will be very useful for the Fraud Detection, and Forecasting algorithms. On Wed, Oct 15, 2014 at 5:34 PM, Lahiru Cooray lahi...@wso2.com wrote: Hi, We have implemented below Math operations (all the Math operations available in Hive) as extensions to Siddhi engine.