"Fossies" - the Fresh Open Source Software Archive

Member "sip-0.12.1/macros/sip_pca_project.sci" (18 Jun 2015, 214 Bytes) of package /linux/privat/sip-0.12.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Scilab source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 function [x_proj_pca, x_proj_orig] = sip_pca_project(x_test, data_db, mean_db)
    2   x_proj_pca = data_db\(x_test-mean_db)       // pca space
    3   x_proj_orig = data_db*x_proj_pca + mean_db  // original space
    4 endfunction