Hello All,

We are developing a median extension for siddhi. Median is the middle
number in a sorted list of numbers.

Here, we implement a simple extension to return the median. The
implementation uses AttributeAggregator as the base class and values are
aggregated over the specified window to give the median. In the case of
having two middle numbers, the extension gives the average of the two as
the median.

Supported data types

Int, Double, Long, Float

Return data type

Double



The median extension can be used for any given window implementation i.e.
sliding time, time batch, external time and sliding length and length batch.

Thanks,
Nihla

-- 
*Nihla Akram*
Software Engineering Intern

+94 72 667 9482 <%2B94%2072%6679482>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to