dot-makeWeights: .makeWeights

.makeWeightsR 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.


valueSetCompare documentation built on June 22, 2024, 6:57 p.m.