Description Usage Arguments Value Examples
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.
1 | smoothVector(myVector, lambda = 2)
|
vector |
input vector, lamdba |
vector of the same length as the input
1 2 | smoothVector(myVector, lambda=3)
smoothVector(myVector)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.