Learn R Programming

GRAPE (version 0.1.1)

w_quad: Quadratic weight function

Description

Calculates the weights of all input entries. All entries should take values in [0,1].

Usage

w_quad(x)

Arguments

x

Any number, vector of matrix.

Value

Weight of each element

Examples

Run this code
# NOT RUN {
w_quad(0.95)
w_quad(cbind(c(.7,.8),c(.9,.1)))
# }

Run the code above in your browser using DataLab