computeWeights.Rd
compute weights for each instance in the data set
computeWeights(p, tags)
p | An int number. |
---|---|
tags | A vector of tags. |
The weights array for data instances given a value of p.
computeWeights(1,c(1,2,3,1,2,1))#> [1] 1.00 0.75 1.50 1.00 0.75 1.00