View source: R/simpleSelection.R
getTau_nomemory | R Documentation |
function to recover changes for a given selected K after fpsn_nomemory
getTau_nomemory(res_fpsn, K_selected)
res_fpsn |
output of the function res_fpsn_nomemory |
K_selected |
K obtained using select_Fpsn |
return a set of changes
x <- c(rnorm(100), rnorm(10^3)+2, rnorm(1000)+1) res <- Fpsn_w_nomemory(x=x, w=rep(1, length(x)), K=100) select.res <- select_Fpsn(res, method="givenVariance") tau <- getTau_nomemory(res, select.res) smt <- getSMT_(res$signal, res$weights, tau)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.