w_quad {GRAPE}R Documentation

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

w_quad(0.95)
w_quad(cbind(c(.7,.8),c(.9,.1)))

[Package GRAPE version 0.1.1 Index]