Used internally. This is a quick and dirty greedy thing. It basically orders sibships by posterior and then by size, and then it goes through and calls them sibships starting with the highest posterior ones. If it reaches one that includes someone that is already in a sibship it discards it and continues. At the end, any one not assigned to a sibship is made a singleton.
1 | greedy_partition(VS)
|
VS |
A vector of counts of the number of times each sibship was visited. The sibships are named according to who is in them via the hashable_sibships function. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.