Skip to content

victor-luu191/lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

A light weight, Java library of useful methods

This repo contains Java src code of useful methods and classes frequently used in my projects (and some of you may find them handy :). Some places in this library make use of some methods from the popular Commons Math library from Apache (huge thanks to developer team of Commons Math), so remember to include their library in your project when you use mine. Your feedback are warmly welcome. If you like my library, do not hesitate to fork it. Clicking on Star button is greatly appreciated.

Most useful classes include:

  • SetOps for set operations with high-level, mathematical method names (union, intersection, ...). The methods are also generic, which allow you to pass sets of any type. Thus, it is very convenient to use them.

  • ArrayOps for common array operations such as finding the index of smallest/largest element. The methods follow R-style naming e.g. whichMin().

  • Savers for compact, one-line wrappers for various save operations. The wrappers already take care of those details of declaring a buffered writer, closing the output file after saving,... so you can focus on what you want to save instead of worrying about technical details of how to do it.

  • Converters for various conversions (e.g. array to vector, list of vectors to a matrix,...)

  • Summary for handy summary operations (sum, mean, max,...) over collections. max(), min() methods are generic, they accept any collection of Comparable objects.

This library is still being developed. More useful stuffs will be added ASAP.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages