Set up the initial guess for the branchmodel. Inspired by kmeans++.
1 | initialize_tips(branchmodel)
|
Fix a tip randomly. Take the farthest point from that, and the farthest point from those two, and then reset the random one to the farthest from the other two. Distance to the pair is the minimum over the individual distances.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.