I am reading LDA from this website LDA simple steps
It said:
What is the meaning of mean? Is the mean in column or row?
In the website it said mean in columns in X, but I think suppose to be in row.
I am reading LDA from this website LDA simple steps
It said:
What is the meaning of mean? Is the mean in column or row?
In the website it said mean in columns in X, but I think suppose to be in row.
According to Standardizing features when using LDA as a pre-processing step, there is no reason for you to standardize data when computing LDA.
To answer your question, however, the mean is meant as the average column-wise of X s.t. the vector $\mu_x$ has size 5 (there are 5 columns) regardless of how many rows you have. In other words, the mean is "the average value of your input samples".
What is the meaning of mean? Is the mean in column or row?
The "mean" is for each column (a.k.a "feature" or "parameter"): the average value for the given feature.
It is important to perform "standardization" (a.k.a "center-reduce") so that each feature can be "compared" to each other: when performing LDA, the variance is analysed to a feature that varies between $0$ and $100 000$ would be seen as having a better "discriminating power" compared to a feature that varies between $-1$ and $1$.
See the answer linked to by @Renthal for the math behind it.