smoothVector: Returns a vector of the same length as the input vector, with...

Description Usage Arguments Value Examples

Description

Returns a vector of the same length as the input vector, with its values "smoothed", to be closer to the vector mean. The parameter lambda defines the magnitude of smoothing. If lambda is set to 1, every element of the returned vector will be equal to the vector mean. The magnitude of smoothing is disproportional to the value of lambda.

Usage

1
smoothVector(myVector, lambda = 2)

Arguments

vector

input vector, lamdba

Value

vector of the same length as the input

Examples

1
2
smoothVector(myVector, lambda=3)
smoothVector(myVector)

thanasis-com/PDMT documentation built on May 31, 2019, 9:09 a.m.