File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mode calculation

 
Chris Montgomery
Ranch Hand
Posts: 141
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't seem to find a library that calculates mode.
the jakarta commons math is close, but the array must be in memory and no more than 100 rows.

I have an array that ranges between 20,000 and 90,000.

I found a C# version and converted it to java, but it's wrong (could be me, my conversion...). (excel's mode and PHP's mode of the same data proved that).


Ideally, I'd like a library to do it, but if someone has code they can provide that would be great too.

Thanks!
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic