Support Vector Machine (OOP Java port from C LibSVM)