Source: http://sbsrv7.epfl.ch/instituts/isic/lepa/ICP3_lecture_notes/Separation_Methods/Exercices/Nathalie_2010/Serie6_exos.pdf