similarity_sample | R Documentation |

Choose similar object more often, depending on 'similarity_factor'.

```
similarity_sample(sim_mat, size, similarity_factor = 1)
```

`sim_mat` |
Similarity matrix with samples as row/col names. |

`size` |
How many samples to draw. |

`similarity_factor` |
Uniform sampling for 0. Weights mixture of uniform and similarity vector for each draw. |

Vector of samples.

```
similarity_sample(matrix(runif(100), nrow = 10, ncol = 10), 3)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.