Skip to content

Instantly share code, notes, and snippets.

@dvanatta
Forked from rmcgibbo/alg.txt
Created November 29, 2012 00:41
Show Gist options
  • Save dvanatta/4165887 to your computer and use it in GitHub Desktop.
Save dvanatta/4165887 to your computer and use it in GitHub Desktop.
make an empty list called medoids
for cluster i:
let t be a trajectory containing all of the structures assigned to cluster i
let D = the full len(t) x len(t) pairwise RMSD distance matrix
set medoid[i] = argmin( rowsums (D) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment