% Example of voronoi diagram.

N = 50
D = gendatgauss([N N ], [0 0; 0 2 ]* 2, cat(3, [2 1; 1 4], eye(2)));

voronoi(D.data(:,1), D.data(:,2));
hold on;
scatterd(D);

