Commits

Zoltan Szabo committed 292ab7b

estimate_HRenyi_constant.m: simplified; gam: deleted. DTsallis_kNN_k_estimation.m: 'alpha-1' -> '1-alpha'.

Comments (0)

Files changed (2)

code/H_I_D/base_estimators/DTsallis_kNN_k_estimation.m

 end
 
 D_alpha = estimate_Dalpha(X,Y,co);
-D = (D_alpha-1)/(co.alpha-1);
+D = (1-D_alpha)/(co.alpha-1);

code/H_I_D/utilities/estimate_HRenyi_constant.m

     case {'Renyi_kNN_1tok','Renyi_kNN_S','Renyi_MST','Renyi_GSF'}
         %initialization:
             alp = co.alpha; 
-            gam = d * (1-alp);
             sum_of_normalizedL = 0;      
 
         for k = 1 : num_of_MC_runs
 		    %L = compute_length_HRenyi_kNN_S(Y,co);
                     %L = compute_length_HRenyi_MST(Y,co);
                     %L = compute_length_HRenyi_GSF(Y,co);
-            sum_of_normalizedL = sum_of_normalizedL + L / (num_of_samples^(1-gam/d) ); 
+            sum_of_normalizedL = sum_of_normalizedL + L / (num_of_samples^alp); 
             if mod(k,10)==1
                 disp(strcat('k=',num2str(k),'(/',num2str(num_of_MC_runs),')'));
             end
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.