I'm trying to compute the distance between tuples (objects) in big data set using map-reduce function to relax this problem
Here is my map function
function Neighborhood_lower_Mapper(Data,~,intermidiateValuesOut)
Data = table2array(num_data);
%%
threshold = 0.1;
numclass = zeros();
if isempty(num_data)
numclass = [];
else
for i = 1:size(num_data,1)
count = 0;
for j = 1:size(num_data,1)
sim = 0;
for k = 1:size(num_data,2)
sim = sim + ((abs(num_data(i,k) - num_data(j,k)))/...
(max(num_data(:,k))- min(num_data(:,k))))^2;
end
sim = sqrt(sim);
if sim