Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e8ecfc
commit 0e82fae
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#' Apply Shrinkage to Wavelet Coefficients | ||
#' | ||
#' SURE referes to Stein's Unbiased Risk Estimate. | ||
#' | ||
#' @export MultiSURE | ||
#' @param wc Wavelet Transform of noisy sequence with N(0,1) noise. | ||
#' @param L low-frequency cutoff for Wavelet Transform. | ||
#' @return \code{ws} result of applying SUREThresh to each dyadic block. | ||
|
||
MultiSURE <- function(wc, L) { | ||
d <- dyadlength(wcoef) | ||
J <- d$y | ||
n <- d$x | ||
for (j in (J - 1):L) { | ||
wc[dyad(j)] <- SUREThresh(wc[dyad(j)]) | ||
} | ||
ws <- wc | ||
return(ws) | ||
} | ||
|
||
# Copyright (c) 1993-5. Jonathan Buckheit, David Donoho and Iain Johnstone | ||
|
||
# Part of Wavelab Version 850 Built Tue Jan 3 13:20:39 EST 2006 This is | ||
# Copyrighted Material For Copying permissions see COPYING.m Comments? e-mail | ||
# wavelab@stat.stanford.edu |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.