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

Expand trajectories part #1

Open
henryhetired opened this issue Jul 17, 2015 · 1 comment
Open

Expand trajectories part #1

henryhetired opened this issue Jul 17, 2015 · 1 comment

Comments

@henryhetired
Copy link

Hi,

Sorry if I miss something completely obvious, but in the last part of the expand trajectories function, when the first if is executed, wouldn't you have already set segment s to be classified meaning the second if would never be executed ?

Should it be only setting the cluster ID to s in the first if and set it to be classified in the second if ?

Thanks a lot !
Henry

@ivansanchezvera
Copy link
Owner

Sorry mate, I was travelling in vacations and did not have time to check this.
If you don't set the classifying flag to true, the algorithm would never converge.
That is my understanding, Also it is possible that there is an implementation mistake (let me know if you really believe this is an implementation error, so I allocate time to check this issue in greater detail).
If the segments are neighbors, then they should be classified in that cluster given the min number of lines is reached.
As it is the algorithm works and it assigns it segment into a cluster based on density.
Sorry about the messy code, I am now doing some major refactoring.
Best regards,
Ivan

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