exportPattern("^[[:alpha:]]+")

import(stats)
import(graphics)
import(grDevices)

import(data.table)
import(FNN)
import(e1071)

importFrom("data.table", "data.table", "rbindlist", "setDF")
importFrom("FNN", "knn")
importFrom("signal", "sgolayfilt")
importFrom("e1071", "svm")
importFrom("utils", "read.table", "write.table")

#importFrom("stats", "coef", "predict")
#importFrom("base", "transform")      ### ==> create error

S3method(predict, Dmnorm)

S3method(transform, Fda)
S3method(summary, Fda)

S3method(predict, Lda)
S3method(predict, Qda)

S3method(transform, Pca)
S3method(summary, Pca)
S3method(xfit, Pca)

S3method(transform, Kpca)
S3method(summary, Kpca)

S3method(coef, Lmr)
S3method(predict, Lmr)
S3method(predict, Lmrda)

S3method(transform, Plsr)
S3method(summary, Plsr)
S3method(coef, Plsr)
S3method(xfit, Plsr)
S3method(predict, Plsr)

S3method(coef, Cglsr)
S3method(predict, Cglsr)

S3method(predict, Plsrda)
S3method(predict, Plsprobda)

S3method(predict, Plsr_agg)
S3method(predict, Plsda_agg)

S3method(transform, Kplsr)
S3method(coef, Kplsr)
S3method(predict, Kplsr)
S3method(predict, Kplsrda)

S3method(transform, Dkpls)
S3method(coef, Dkpls)
S3method(predict, Dkplsr)

S3method(coef, Rr)
S3method(predict, Rr)
S3method(predict, Rrda)

S3method(coef, Krr)
S3method(predict, Krr)
S3method(predict, Krrda)

S3method(coef, Dkrr)
S3method(predict, Dkrr)

S3method(predict, Lwplsr)
S3method(predict, Lwplsrda)
S3method(predict, Lwplsprobda)

S3method(predict, Lwplsr_agg)
S3method(predict, Lwplsrda_agg)
S3method(predict, Lwplsprobda_agg)

S3method(predict, Knnr)
S3method(predict, Knnda)

S3method(predict, Svm)
S3method(summary, Svm)

S3method(coef, Mbplsr)
S3method(predict, Mbplsr)
S3method(transform, Mbplsr)
S3method(summary, Mbplsr)

S3method(predict, Mbplsprobda)
S3method(predict, Mbplsrda)

S3method(predict, Soplsr)
S3method(transform, Soplsr)
S3method(predict, Soplsrda)
S3method(transform, Soplsrda)
S3method(predict, Soplsprobda) 
S3method(transform, Soplsprobda)

S3method(predict, Covsellmr)
S3method(predict, Covselprobda)
S3method(predict, Covselrda)

S3method(summary, Consensuspca) 
S3method(transform, Consensuspca)
#S3method(summary, Consensuspcanipals) 
#S3method(transform, Consensuspcanipals)

#exportMethods("transform", "coef", "predict")
#exportClasses("PcaOrtho", "PlsOrtho", 
#              "Dmnorm", "Lda", "Qda", "Plsda", "PlsDaProb",
#              "LwplsR")
#export(plskern)








