hft.inv | R Documentation |
Performs the inverse Haar-Fisz transform.
hft.inv(data)
data |
Vector of length |
The inverse Haar-Fisz transform of data
(vector of the same length as data
).
Piotr Fryzlewicz
Fryzlewicz, P. and Nason, G.P. (2004) A Haar-Fisz algorithm for Poisson intensity estimation. Journal of Computational and Graphical Statistics, 13, 621-638. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1198/106186004X2697")}
denoise.poisson
, hft
#
# Make up test set (mimics sequence with half low intensity, followed by
# half high intensity)
#
test.set <- c(8,5,6,3, 30,40,20,35)
#
# Do forward HFT
#
test.hft <- hft(test.set)
test.hft
# [1] 16.38621 15.20951 15.65216 14.23795 21.20421 22.89452 19.27753 22.13791
#
# Do inverse HFT
#
test.back <- hft.inv(test.hft)
test.back
# [1] 8 5 6 3 30 40 20 35
#
# Same as original
#
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.