Description Usage Arguments Details Value Note Author(s) Examples
Sampler to generate N top-k lists according to p. A function wrapping to a native C implementation is available as well.
1 2 | TopKSample(p, N)
TopKSample.c(p, N)
|
p |
Matrix of dimension n*(k+1), n is the number of items (to be ranked) and k is the top elements in the joint ranking. Each column is a multinomial probability vector. |
N |
The number of samples |
A pure R implementation TopKSample
and a native C method TopKSample.c
are available.
N TopKlists
By default the C implementation is used due to its better performance.
Jie Ding <jding@jimmy.harvard.edu>
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.