Skip to content

《Pattern Classification》2nd edition chapter 2 programming assignments

Notifications You must be signed in to change notification settings

chensonglu/Pattern-Classification-2nd-CH2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pattern-Classification-2nd-CH2

The repository contains the code of 《Pattern Classification》2nd Chapter2.

Please refer to the blog (https://blog.csdn.net/lkj345/article/details/50480317) for more details.

Bhattacharyya.m: Find the Bhattacharyya bound given means and covariances of single gaussian distributions.

CH2.mat: CH2 data.

CH2_1_a.m: Generate random vectors from the multivariate normal distribution.
CH2_1_a_test.m: Generate two normal distributions and plot.

CH2_1_a_test

CH2_1_b.m: Discriminant function of a normal distribution given prior probability.
CH2_1_c.m: Calculate the Euclidean distance between two vectors.
CH2_1_d.m: Calculate the Mahalanobis distance of a vector.

CH2_2.m: Generate classification model of two classes, then calculate the classification error and the Bhattacharyya bound.
CH2_2_test.m: Plot classification error and Bhattacharyya bound.

CH2_2_test

CH2_3.m: Plot classification error and Bhattacharyya bound.

CH2_3

CH2_4.m: Calculate the Mahalanobis distance with three classes, then classify the vectors.
CH2_4_test.m: Test CH2_4.m with four vectors.

CH2_5.m: The script is to prove that the average of a large number of independent random variables follows Gauss distribution.

CH2_5

CH2_6.m: Calculate the classification error of two classes.
CH2_6_test.m: Test CH2_6.m.

CH2_6_test_1 CH2_6_test_2

CH2_7.m: Calculate the Bhattacharyya bound, estimated error and a series of classification error of two Gauss distribution.
CH2_7_test.m: Test CH2_7.m.

CH2_7_test_1 CH2_7_test_2

CH2_8_a.m: Test CH2_7.m with two Gauss distribution.

CH2_8_a_1 CH2_8_a_2

CH2_8_b.m: Test CH2_7.m with two Gauss distribution.

CH2_8_b_1 CH2_8_b_2

CH2_8_c.m: Test CH2_7.m with two Gauss distribution.

CH2_8_c_1 CH2_8_c_2

Chernoff.m: Find the Chernoff bound given means and covariances of single gaussian distributions.

About

《Pattern Classification》2nd edition chapter 2 programming assignments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published