compute weights for each instance in the data set

computeWeights(p, tags)

Arguments

p

An int number.

tags

A vector of tags.

Value

The weights array for data instances given a value of p.

Examples

computeWeights(1,c(1,2,3,1,2,1))
#> [1] 1.00 0.75 1.50 1.00 0.75 1.00