Since p can't change during the execution, make sure to force p to be a constant value. Am I correct here ?
Regards Suho On Wed, Jun 8, 2016 at 6:38 AM, Ashen Weerathunga <[email protected]> wrote: > Hi All, > > I'm writing a siddhi extension for calculating percentile values. This > will be implemented as an Aggregate Function Extension under math > extensions. Two input parameter will be required for this function as below: > > <double>* percentile(*<int|long|double|float>* arg, *<double>* p)* > > - *arg* : values that need to be considered when calculating the > percentile value > - *p* : percentile > - This will return an estimate for pth percentile of arg values. > > eg : *percentile(temperature, 95.0)* > > - returns the 95th percentile value of all the temperature events > based on their arrival and expiry. > > Please let me know if you have any suggestions on this. > > Thanks, > Ashen > > -- > *Ashen Weerathunga* > Software Engineer > WSO2 Inc.: http://wso2.com > lean.enterprise.middleware > > Email: [email protected] > Mobile: +94 716042995 <94716042995> > LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga > <http://lk.linkedin.com/in/ashenweerathunga>* > -- *S. Suhothayan* Technical Lead & Team Lead of WSO2 Complex Event Processor *WSO2 Inc. *http://wso2.com * <http://wso2.com/>* lean . enterprise . middleware *cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter: http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in: http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>*
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
