highestValue: Calculates weights relative to the highest sum relative to...

Description Usage Arguments Value Examples

Description

Awards higher weights to those attirbutes which consistently showed higher values, measured against the highest posssible. Secondary function used for main function weight.highAndStandard.

Usage

1
highestValue(normalizedMatrix)

Arguments

normalizedMatrix

Value

a weight vector (numeric vector with a sum of 1)

Examples

1
2
3
4
#Runnable
highestValue(matrix(c(1.0, 0.85, 0.42, 0, 0.5, 0, 1, 0.7), 4, 2))
weights <- highestValue(matrix(c(1.0, 0.85, 0.42, 0, 0.5, 0, 1, 0.7), 2, 4))
sum(weights) should return 1

avilesd/productConfig documentation built on May 11, 2019, 4:08 p.m.