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

The change of the clustering distance #130

Open
SamGG opened this issue Aug 10, 2016 · 1 comment
Open

The change of the clustering distance #130

SamGG opened this issue Aug 10, 2016 · 1 comment

Comments

@SamGG
Copy link

SamGG commented Aug 10, 2016

Hi,
When SPADE switches from the original clustering (cluster.cc) to the Rcppcluster one, it seems that the distance changed from Manhattan to Euclidean also. What is the rational?
Best.

@monchin
Copy link

monchin commented May 25, 2018

@SamGG It seems that when in driver .R to call FCSToTree function, it would call SPADE.cluster function and then call Rclusterpp.hcluster function. In Rclusterpp.hcluster, the default parameter is
Rclusterpp.hclust <- function(x, method="ward", members=NULL, distance="euclidean", p=2)
which means the distance is Euclidean.
But I'm wondering why does SPADE compute the Manhattan distance when it compute density and upsampling, while use Euclidean distance and 'Ward' method when it h-clusters. I don't know the reason to use Manhattan.

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