Sarah Romanes and John Ormerod implemented multi-class linear/quadratic discriminant analysis. Improve code so that it uses loops instead of copying and pasting the same command multiple times with different indices. Remove all representation of classes as 0 or 1 indicators (i.e. n = sum(vy1 + vy2 + vy3) can be n = length(samplesClasses)) and ensure the classifier works with a single factor variable. Convert end-user functions into S4 functions. Use :: notation for accessing functions from other packages and import them in NAMESPACE file. Also check for variables that are calculated but never used in any calculations such as Sx1 = t(mX)%*%(vy1+vy2+vy3) and Sx2 = t(mX2)%*%(vy1+vy2+vy3). Are they necessary for a correct calculation or are they left-over from an abandoned idea? Create documentation for all end-user facing functions.
Sarah Romanes and John Ormerod implemented multi-class linear/quadratic discriminant analysis. Improve code so that it uses loops instead of copying and pasting the same command multiple times with different indices. Remove all representation of classes as
0
or1
indicators (i.e.n = sum(vy1 + vy2 + vy3)
can ben = length(samplesClasses)
) and ensure the classifier works with a single factor variable. Convert end-user functions into S4 functions. Use::
notation for accessing functions from other packages and import them inNAMESPACE
file. Also check for variables that are calculated but never used in any calculations such asSx1 = t(mX)%*%(vy1+vy2+vy3)
andSx2 = t(mX2)%*%(vy1+vy2+vy3)
. Are they necessary for a correct calculation or are they left-over from an abandoned idea? Create documentation for all end-user facing functions.