I am trying to implement Linear Discriminant Analysis. I have 10 classes and each class has 3 observations at various instances:
class 1 = {{a1,a2,a3}
{b1,b2,b3}
{c1,c2,c3}}
a,b,c
are 3 observations found at various instances a1,a2,a3
. Class 1 is a 3*3 Matrix!
Now I have to find the mean observation of each class. For example, I have to find the mean of class 1:
A = (a1+a2+a3)/3
B = (b1+b2+b3)/3
C = (c1+c2+c3)/3
mean of class1 = (A+B+C)/3
I am confused at this point, kindly help me to solve this?
Clarification update: I am trying to implement image recognition using LDA, my class1 matrix is of size 10*32256 of 10 sample images. Like this I have 5 classes. I was confused how to take mean for this matrix: whether to add all the instance of row 1 and divide by 32256 or add the column and divide by 10.