.makeWeights {valueSetCompare} | R Documentation |
.makeWeights
Description
A function to calculate weights with specified variant function.
Usage
.makeWeights(
x,
pointval = 100,
rng = c(0:100),
variant_fun = .makeWeightsMixed
)
Arguments
x |
A numeric vector of input values. |
pointval |
A numeric point value within the range of x, default is 100. |
rng |
A numeric vector indicating the range of x, default is 0 to 100. |
variant_fun |
A function to calculate weights. It can be makeWeightsTriangular, makeWeightsGradient, makeWeightsMixed, or a custom function name. Default is makeWeightsTriangular. |
Value
A numeric vector of calculated and scaled weights.
[Package valueSetCompare version 1.0.0 Index]