// file: $isip/class/pr/Kpca/Kpca.h // version: $Id: Kpca.h,v // // make sure definitions are only made once // #ifndef ISIP_KPCA #define ISIP_KPCA #ifndef ISIP_VECTOR_DOUBLE #include #endif #ifndef ISIP_MATRIX_DOUBLE #include #endif #ifndef ISIP_VECTOR #include #endif boolean compute(MatrixDouble& features_a, MatrixDouble& test_features_a, const Vector& patterns_a, const Vector& test_patterns_a); boolean computeEigen(VectorDouble& eigenvals, MatrixDouble& eigenvecs, const MatrixDouble& input); long chooseEigenNum(const VectorDouble& eigenvals); boolean eval(const char* filename); boolean kernel(MatrixDouble& output, const Vector& patterns, const Vector& test_patterns, boolean self = false); //end of include file // #endif