The goal of vweights is to compute non-negative weights for cohesion function used to define a law for random partition, that is of Gibbs type.
The implementation has been done in C++ through the use of Rcpp and RcppArmadillo.
Authors: Matteo Pedone, Raffaele Argiento.
Maintainer: Matteo Pedone.
You can install the development version from GitHub, using the devtools package with:
devtools::install_github("mattpedone/vweights")NOTE that this package depends on gsl. It has only been tested on a PC running Ubuntu 20.04.2 LTS.
This is a basic example which shows you how to solve a common problem:
library(vweights)
vweights::computev(5, .1, 10.5)