Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CENTROIDS #1

Open
rajabhishek23GNC opened this issue Dec 10, 2023 · 1 comment
Open

CENTROIDS #1

rajabhishek23GNC opened this issue Dec 10, 2023 · 1 comment

Comments

@rajabhishek23GNC
Copy link

Hello!
I have a query. Is there any way to find the centroid of the voronoi cells?

@aloadir
Copy link

aloadir commented Feb 8, 2024

The positions are defined on the first loop on the "demo.m" file.

for i = 1:size(pos0,1)
    if in(i) ==1
        u1 = u1 + 1;
        pos(u1,:) = pos0(i,:);
    end
end

Each 'pos' object is one centroid position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants