Learn R Programming

wowa (version 1.0.2)

wowa.WAM: WAM computation

Description

Function for calculating the Weighted Arithmetic Mean

Usage

wowa.WAM(n, x, w)

Arguments

n

Dimension of the array x

x

The vector of inputs

w

The vector of weights

Value

output

The value of the WAM function

References

[1]G. Beliakov, H. Bustince, and T. Calvo. A Practical Guide to Averaging Functions. Springer, Berlin, Heidelberg, 2016.

Examples

Run this code
# NOT RUN {
  n <- 4
  wowa.WAM(n, c(0.3,0.4,0.8,0.2), c(0.3,0.25,0.3,0.15) )
# }

Run the code above in your browser using DataLab