Rank: 1881 based on 64 downloads (last 30 days) and 3 files submitted
photo

Mehmet Suzen

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Mehmet Suzen View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
29 Aug 2013 INTERSECTALL Given set of sets, produce all possible intersections for each set or all sets at once. Author: Mehmet Suzen data exploration 7 4
08 Jul 2013 Generate Weighted Histogram histwc is a simple utility to construct weighted histogram. Author: Mehmet Suzen statistics, data exploration, modeling 48 4
  • 4.5
4.5 | 2 ratings
12 Nov 2012 Imputation of missing data: Recursive 1D discrete KNN algorithm imputeMatrixNaNKnn takes a matrix as an input and fills the NaN values with the closest available. Author: Mehmet Suzen data exploration, statistics 9 0
Comments and Ratings by Mehmet Suzen View all
Updated File Comments Rating
25 Nov 2014 Generate Weighted Histogram histwc is a simple utility to construct weighted histogram. Author: Mehmet Suzen

Thank you Brent. One otherway to make it even faster is to use C++ via MEX.

29 Aug 2013 INTERSECTALL Given set of sets, produce all possible intersections for each set or all sets at once. Author: Mehmet Suzen

@Alle Meije,

Thanks for the feedback. I have added one more utility, called INTERSECTALLSET. It does what you need. Also, I've updated the description, hoping that now it is clear what INTERSECTALL produces.

09 Nov 2012 INTERSECTALL Given set of sets, produce all possible intersections for each set or all sets at once. Author: Mehmet Suzen

Just uploaded a new version with the following example, hope it helps:

vecSets = {[11, 12, 22, 14], [11, 15, 17, 22, 33], [ 17, 25, 14] }
[indexSet, numAllintersect] = intersectAll(vecSets);
indexSet{1}
ans =
1 3 4
indexSet{2}
ans =
1 3 4
indexSet{3}
ans =
1 3
numAllintersect
3
3
2

Comments and Ratings on Mehmet Suzen's Files View all
Updated File Comment by Comments Rating
25 Nov 2014 Generate Weighted Histogram histwc is a simple utility to construct weighted histogram. Author: Mehmet Suzen Mehmet Suzen

Thank you Brent. One otherway to make it even faster is to use C++ via MEX.

04 Nov 2014 Generate Weighted Histogram histwc is a simple utility to construct weighted histogram. Author: Mehmet Suzen Brent

There is a much faster option available (I am using R2014a) using accumarray. For my applications the code below was 100 times faster.

function [histw histv] = histwv(v, w, min, max, bins)
%Inputs:
%vv - values
%ww - weights
%minV - minimum value
%maxV - max value
%bins - number of bins (inclusive)

%Outputs:
%histw - wieghted histogram
%histv (optional) - histogram of values

delta = (max-min)/(bins-1);
subs = round((v-min)/delta)+1;

histv = accumarray(subs,1,[bins,1]);
histw = accumarray(subs,w,[bins,1]);
end

16 Apr 2014 Generate Weighted Histogram histwc is a simple utility to construct weighted histogram. Author: Mehmet Suzen Jasper

Hi! Just a comment: If you want a weighted histogram in more than one dimension, you can use the submission histcn in file exchange. Just use the option histcn(...,'AccumData', weights); The result will not be 100% the same as the one obtained with this function, since the bin edges are calculated differently.

07 Oct 2013 Generate Weighted Histogram histwc is a simple utility to construct weighted histogram. Author: Mehmet Suzen Chi-Fu

It works perfectly to me. Thank you!

29 Aug 2013 INTERSECTALL Given set of sets, produce all possible intersections for each set or all sets at once. Author: Mehmet Suzen Mehmet Suzen

@Alle Meije,

Thanks for the feedback. I have added one more utility, called INTERSECTALLSET. It does what you need. Also, I've updated the description, hoping that now it is clear what INTERSECTALL produces.

Contact us