function [ajusted_data] = adjust_mean(data, mean_x, mean_y)

sum_x = 0;
sum_y = 0;
[rows, cols] = size(data);
for i = 1:rows,
	sum_x = sum_x + data(i,1);
	sum_y = sum_y + data(i,2);
end;

offset_x = mean_x - sum_x / rows;
offset_y = mean_y - sum_y / rows;

for i = 1:rows,
	adjusted_data(i,1) = data(i,1) - offset_x;
	adjusted_data(i,2) = data(i,2) - offset_y;
end

