The Frequency[1] class is what you're looking for. You can find a basic example of it in the user guide [2].
Bill- [1] http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math3/stat/Frequency.html [2] http://commons.apache.org/proper/commons-math/userguide/stat.html#a1.3_Frequency_distributions On Thu, Jul 4, 2013 at 11:29 AM, Matt Benson <[email protected]> wrote: > I don't know about [math], but [lang] 3.x has mean, median and mode in > ObjectUtils. > > Matt > On Jul 4, 2013 10:25 AM, "Ben Titmarsh" <[email protected]> > wrote: > > > Hi, > > > > I am looking for a library that can provide the mode ( > > http://en.wikipedia.org/wiki/Mode_%28statistics%29) of a set numbers. > > This is a simple arithmetic operation but I am unable to find a reference > > to this in the documentation. Can anyone point it out to me, if not > > suggest why it is not supported? > > > > Thanks, > > Ben. > > >
