this function classifies test data using a fitted QDA model
predict_QDA(fit, Xtest)
| fit | this is a list with elements pi.hats, mu.hats, and Sigma.hats where pi.hats is a list of C response category sample proportions, mu.hats is a list of C p-dimensional sample mean proportions, Sigma.hats is a list of C p by p Sample covariance matrices | 
|---|---|
| Xtest | this is a matrix with ntest rows and p column, each row is a test case | 
returns a vector of ntest entries, where the ith entry is the estimated response category (some value in 1, ..., C) for the ith test case.