function R = meanNnd2d(M);
% Calculates the mean nnd of a 2d group, using the raw matrix as the input

individual = allnn2d(M);
findmean = mean(individual(:,2));
R = findmean;
