Octave ann issue

Issue #9 resolved
Anonymous created an issue

I did a clean install of Octave on Fedora 25. I installed octave-devel and swig package on Fedora. After that I run ITE_install script. Here is the output:

ITE_install.m remove entire contents of shared/embedded/ann_wrapperM/? (yes or no) yes Installation: started. We are working in Octave environment => ann_wrapper for Matlab: deleted. ARfit package: downloading, extraction: started. ARfit package: downloading, extraction: ready. AOD:MISR1 dataset: downloading, extraction: started. AOD:MISR1 dataset: downloading, extraction: ready. warning: function /home/user/code/b078fc365d41f05d890d3385cae178016c4a6dde/code/shared/embedded/if-estimators/demos/demo.m shadows a core library function warning: called from ITE_install at line 134 column 5 warning: function /home/user/code/b078fc365d41f05d890d3385cae178016c4a6dde/code/shared/embedded/E4/vech.m shadows a core library function remove entire contents of /home/user/code/b078fc365d41f05d890d3385cae178016c4a6dde/code/shared/embedded/NCut/? (yes or no) no SW_kappa.cpp: In function ‘void mexFunction(int, mxArray, int, const mxArray)’: SW_kappa.cpp:22:8: warning: ‘Cbins’ may be used uninitialized in this function [-Wmaybe-uninitialized] long Cbins; / Number of indices in each bin, NbinsCbins=N */ ^~~ SW_kappa.cpp:134:12: warning: ‘bec’ may be used uninitialized in this function [-Wmaybe-uninitialized] bec[l]=bec[l-1]+becd[l]; ~~^~~~~ SW_kappa.cpp:164:40: warning: ‘becd’ may be used uninitialized in this function [-Wmaybe-uninitialized] becd[r_sorted[(i-1)*Cbins+l]/Cbins]--; ^ SW_kappa.cpp:80:8: warning: ‘bound’ may be used uninitialized in this function [-Wmaybe-uninitialized] bound/=4.0; ~^ SW_kappa.cpp:76:37: warning: ‘d’ may be used uninitialized in this function [-Wmaybe-uninitialized] plhs[0]=mxCreateDoubleMatrix(d-1,d-1,mxREAL); ~^~ SW_kappa.cpp:99:18: warning: ‘N’ may be used uninitialized in this function [-Wmaybe-uninitialized] for( i=0; i<N; i++ ) ~^~ SW_kappa.cpp:18:11: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] double r; / Input array of ranks / ^ SW_sigma.cpp: In function ‘void mexFunction(int, mxArray, int, const mxArray)’: SW_sigma.cpp:23:8: warning: ‘Cbins’ may be used uninitialized in this function [-Wmaybe-uninitialized] long Cbins; / Number of indices in each bin, NbinsCbins=N / ^ SW_sigma.cpp:133:12: warning: ‘bec’ may be used uninitialized in this function [-Wmaybe-uninitialized] bec[l]=bec[l-1]+becd[l]; ~~^~~~~ SW_sigma.cpp:159:40: warning: ‘becd’ may be used uninitialized in this function [-Wmaybe-uninitialized] becd[r_sorted[(i-1)*Cbins+l]/Cbins]--; ^ SW_sigma.cpp:79:8: warning: ‘bound’ may be used uninitialized in this function [-Wmaybe-uninitialized] bound/=12.0; ~^~ SW_sigma.cpp:75:37: warning: ‘d’ may be used uninitialized in this function [-Wmaybe-uninitialized] plhs[0]=mxCreateDoubleMatrix(d-1,d-1,mxREAL); ~^~ SW_sigma.cpp:98:18: warning: ‘N’ may be used uninitialized in this function [-Wmaybe-uninitialized] for( i=0; i<N; i++ ) ~^~ SW_sigma.cpp:19:11: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] double r; / Input array of ranks / ^ mutin.cpp: In function ‘void mexFunction(int, mxArray, int, const mxArray)’: mutin.cpp:167:11: warning: unused variable ‘yp’ [-Wunused-variable] double yp; ^~ mutin.cpp:169:17: warning: unused variable ‘Pocet’ [-Wunused-variable] int Pocet; ^~~ ITE code directory: added with subfolders to the Octave PATH. We are working in Octave environment => NCut: deleted. TCA (chol_gauss.c) compilation: started. TCA (chol_gauss.c) compilation: ready. SWICA (SW_kappa.cpp, SW_sigma.cpp) compilation: started. SWICA (SW_kappa.cpp, SW_sigma.cpp) compilation: ready. Hoeffding_term1.cpp compilation: started. Hoeffding_term1.cpp compilation: ready. Edgeworth_t1_t2_t3.cpp compilation: started. Edgeworth_t1_t2_t3.cpp compilation: ready. compute_CDSS.cpp compilation: started. compute_CDSS.cpp compilation: ready. knn (top.cpp) compilation: started. knn (top.cpp) compilation: ready. KDP (kdpee.c, kdpeemex.c) compilation: started. KDP (kdpee.c, kdpeemex.c) compilation: ready. Adaptive partitioning based MI (mutin.cpp) compilation: started. Adaptive partitioning based MI (mutin.cpp) compilation: ready.


Installation tests: ARfit quick installation test: successful. knn quick installation test: successful. KDP quick installation test: successful. Adaptive partitioning based MI quick installation test: successful. error: can't perform indexing operations for <unknown type> type

Y = rand(5,1000);mult = 1;co = HShannon_kNN_k_initialization(mult); H = HShannon_kNN_k_estimation(Y,co);

error: 'ann' undefined near line 18 column 5 error: called from initialize_Octave_ann_wrapper_if_needed at line 18 column 5 HShannon_kNN_k_initialization at line 55 column 5

Comments (2)

  1. Log in to comment