正在加载图片...
The mahalanobis distance in Character Recognition Authored by Dan Frey 31 July 98 This sheet explores the use of the Mahalanobis Distance in character It defines a letters a.b.c. and d It creates a population of distorted letters to train a classifier It creates a test population of letters to test the classifier It allows you to compete against the Mahalanobis classifier ORIGIN:=1 Every matrix and vector in this sheet will begin with index number 1 Here are the canonical letters a bc and d defined as matrices of 1s and Os 10011 10001 A:10001 B=11110 C:=10000D=10001 10001 10001 1000 Stretch the letters out into a vector of " features" k+5-5.ceil Reverse the letters. This makes the plots easier to read Alink =Alink =0 Blink=Blink =0 Clink =Clin =0 Dlink=Dlin =0The Mahalanobis Distance in Character Recognition Authored by Dan Frey 31 July 98 This sheet explores the use of the Mahalanobis Distance in character recognition. It defines a letters A, B, C, and D. It creates a population of distorted letters to train a classifier. It creates a test population of letters to test the classifier. It allows you to compete against the Mahalanobis classifier. ORIGIN := 1 Every matrix and vector in this sheet will begin with index number 1. Here are the Canonical letters A B C and D defined as matrices of 1s and 0s � 0 0 1 0 0 � � 1 1 1 1 0 � � 0 1 1 1 0 � � 1 1 1 1 0 � � � � � � � � � � 0 1 0 1 0 � � 1 0 0 1 1 � � 1 0 0 0 1 � � 1 0 0 0 1 � A := � 1 0 0 0 1 � B := � 1 1 1 1 0 � C := � 1 0 0 0 0 � D := � 1 0 0 0 1 � � 1 1 1 1 1 � � 1 0 0 1 1 � � 1 0 0 0 1 � � 1 0 0 0 1 � � � � � � � � � Ł 1 0 0 0 1 ł Ł 1 1 1 1 0 ł Ł 0 1 1 1 0 ł Ł 1 1 1 1 0 ł Stretch the letters out into a vector of "features". k := 1.. 25 Alink := A k+ 5-5� ceil� � k � �, ceil� � k � � Blink := B k+ 5-5� ceil� � k � �, ceil� � k � � Ł 5 ł Ł 5 ł Ł 5 ł Ł 5 ł Clink := C k+ 5-5� ceil� � k � �, ceil� � k � � Dlink := D k+ 5-5�ceil� � k � �, ceil� � k � � Ł 5 ł Ł 5 ł Ł 5 ł Ł 5 ł Reverse the letters. This makes the plots easier to read. Alink := Alink = 0 Blink := Blink = 0 Clink := Clink = 0 Dlink := Dlink = 0 1
向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有