Nothing
## function soft-thresholding
soft_th <- function(X, lambda){
# assume X is a matrix
result <- X
index1 <- which(X > lambda)
result[index1] <- X[index1] - lambda
index2 <- which(X < -lambda)
result[index2] <- X[index2] + lambda
index0 <- which(X <= lambda & X >= -lambda)
result[index0] <- 0
return(result)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.