gibbs.sampR Documentation

gibbs.samp

Description

Call a C++ function that runs a Gibbs Sampler algorithm to sample from the distribution of metabolite to compound attribution with the previous assumption that the connected combination of attributions makes more sense.

Usage

  gibbs.samp(x, y, N, w, p)

Arguments

x

a vector of masses (unique from mass/retention time pairs).

y

a vector of candidate compounds for each mass.

N

number of iterations to sample.

w

matrix of compound connections.

p

matrix of likelihood probabilities.

Value

A list of matrices with attribution indexes and probabilities.