Ben Chuanlong Du's Blog

It is never too late to learn.

Regression Classification ANOVA

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Regression refers to problems where the response (output) variable is continous while classfication refers to problems where the response (output) variable is discrete.

Generally speaking fitting gression to classification problems is …

Java Features

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. String in Switch

Java 7 allows use of strings in switch instead of just integers, which make things much more convenient (see the following example).

public void foo(Foo t) {
    String …

Template Meta Programming

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Illustrative examples for the following discussions can be found here.

  1. Do not use templated generic function/method unless necessary. Templated generic function are more useful generally speaking. However, templated function/method …