final StringBuffer sb = new StringBuffer();
final String[] svmtypes = {"C_SVC", "NU_SVC","ONE_CLASS","EPSILON_SVR","NU_SVR"};
final String[] kerneltypes = {"LINEAR", "POLY","RBF","SIGMOID","PRECOMPUTED"};
final DecimalFormat dform = new DecimalFormat("#0.0#");
final DecimalFormatSymbols sym = new DecimalFormatSymbols();
sym.setDecimalSeparator('.');
dform.setDecimalFormatSymbols(sym);
sb.append("LIBSVM SETTINGS\n");
sb.append(" SVM type : " + svmtypes[param.svm_type] + " (" + param.svm_type + ")\n");
sb.append(" Kernel : " + kerneltypes[param.kernel_type] + " (" + param.kernel_type + ")\n");
if (param.kernel_type == svm_parameter.POLY) {