Suppose that all the mean vectors are organized as rows of a matrix M. Then computing the distances from an arbitrary pattern x to all the mean vectors is accomplished by using the expression discussed in Section 12.2:
คิดว่าเวกเตอร์ทั้งหมดหมายถึงจัดเป็นแถวของเมทริกซ์ม.แล้วคำนวณระยะทางจากการแก้ปัญหาแบบ X เวกเตอร์ทั้งหมดหมายถึงได้ โดยการใช้สำนวนที่กล่าวถึงในมาตราที่แข็งแกร่ง :